| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | fib_lookup.c | 51 int lookup_flags; member 65 .lookup_flags = BPF_FIB_LOOKUP_SKIP_NEIGH, }, 73 .lookup_flags = BPF_FIB_LOOKUP_SKIP_NEIGH, }, 76 .lookup_flags = BPF_FIB_LOOKUP_DIRECT | BPF_FIB_LOOKUP_TBID, 80 .lookup_flags = BPF_FIB_LOOKUP_DIRECT | BPF_FIB_LOOKUP_TBID, .tbid = 100, 84 .lookup_flags = BPF_FIB_LOOKUP_DIRECT | BPF_FIB_LOOKUP_TBID, 88 .lookup_flags = BPF_FIB_LOOKUP_DIRECT | BPF_FIB_LOOKUP_TBID, .tbid = 100, 93 .lookup_flags = BPF_FIB_LOOKUP_SRC | BPF_FIB_LOOKUP_SKIP_NEIGH, }, 97 .lookup_flags = BPF_FIB_LOOKUP_SRC | BPF_FIB_LOOKUP_SKIP_NEIGH, }, 101 .lookup_flags = BPF_FIB_LOOKUP_SRC | BPF_FIB_LOOKUP_SKIP_NEIGH, }, [all …]
|
| /linux/fs/ |
| H A D | open.c | 131 unsigned int lookup_flags = LOOKUP_FOLLOW; in do_sys_truncate() local 139 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate() 144 if (retry_estale(error, lookup_flags)) { in do_sys_truncate() 145 lookup_flags |= LOOKUP_REVAL; in do_sys_truncate() 472 unsigned int lookup_flags = LOOKUP_FOLLOW; in do_faccessat() local 482 lookup_flags &= ~LOOKUP_FOLLOW; in do_faccessat() 484 lookup_flags |= LOOKUP_EMPTY; in do_faccessat() 493 res = user_path_at(dfd, filename, lookup_flags, &path); in do_faccessat() 528 if (retry_estale(res, lookup_flags)) { in do_faccessat() 529 lookup_flags |= LOOKUP_REVAL; in do_faccessat() [all …]
|
| H A D | xattr.c | 654 unsigned int lookup_flags, struct kernel_xattr_ctx *ctx) in filename_setxattr() argument 660 error = filename_lookup(dfd, filename, lookup_flags, &path, NULL); in filename_setxattr() 669 if (retry_estale(error, lookup_flags)) { in filename_setxattr() 670 lookup_flags |= LOOKUP_REVAL; in filename_setxattr() 692 unsigned int lookup_flags = 0; in path_setxattrat() local 699 lookup_flags = LOOKUP_FOLLOW; in path_setxattrat() 713 error = filename_setxattr(dfd, filename, lookup_flags, &ctx); in path_setxattrat() 809 unsigned int lookup_flags, struct kernel_xattr_ctx *ctx) in filename_getxattr() argument 814 error = filename_lookup(dfd, filename, lookup_flags, &path, NULL); in filename_getxattr() 819 if (retry_estale(error, lookup_flags)) { in filename_getxattr() [all …]
|
| H A D | fsopen.c | 167 unsigned int lookup_flags; in SYSCALL_DEFINE3() local 179 lookup_flags = LOOKUP_FOLLOW | LOOKUP_AUTOMOUNT; in SYSCALL_DEFINE3() 181 lookup_flags &= ~LOOKUP_FOLLOW; in SYSCALL_DEFINE3() 183 lookup_flags &= ~LOOKUP_AUTOMOUNT; in SYSCALL_DEFINE3() 185 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE3() 186 ret = user_path_at(dfd, path, lookup_flags, &target); in SYSCALL_DEFINE3() 359 int lookup_flags = 0; in SYSCALL_DEFINE5() local 447 lookup_flags = LOOKUP_EMPTY; in SYSCALL_DEFINE5() 451 param.name = getname_flags(_value, lookup_flags); in SYSCALL_DEFINE5()
|
| H A D | init.c | 32 int lookup_flags = LOOKUP_MOUNTPOINT; in init_umount() local 37 lookup_flags |= LOOKUP_FOLLOW; in init_umount() 38 ret = kern_path(name, lookup_flags, &path); in init_umount() 84 int lookup_flags = (flags & AT_SYMLINK_NOFOLLOW) ? 0 : LOOKUP_FOLLOW; in init_chown() local 88 error = kern_path(filename, lookup_flags, &path); in init_chown() 128 int lookup_flags = (flags & AT_SYMLINK_NOFOLLOW) ? 0 : LOOKUP_FOLLOW; in init_stat() local 132 error = kern_path(filename, lookup_flags, &path); in init_stat()
|
| H A D | utimes.c | 84 int lookup_flags = 0, error; in do_utimes_path() local 90 lookup_flags |= LOOKUP_FOLLOW; in do_utimes_path() 92 lookup_flags |= LOOKUP_EMPTY; in do_utimes_path() 95 error = user_path_at(dfd, filename, lookup_flags, &path); in do_utimes_path() 101 if (retry_estale(error, lookup_flags)) { in do_utimes_path() 102 lookup_flags |= LOOKUP_REVAL; in do_utimes_path()
|
| H A D | stat.c | 286 int lookup_flags = 0; in statx_lookup_flags() local 289 lookup_flags |= LOOKUP_FOLLOW; in statx_lookup_flags() 291 lookup_flags |= LOOKUP_AUTOMOUNT; in statx_lookup_flags() 293 return lookup_flags; in statx_lookup_flags() 345 unsigned int lookup_flags = statx_lookup_flags(flags); in vfs_statx() local 353 error = filename_lookup(dfd, filename, lookup_flags, &path, NULL); in vfs_statx() 358 if (retry_estale(error, lookup_flags)) { in vfs_statx() 359 lookup_flags |= LOOKUP_REVAL; in vfs_statx() 569 unsigned int lookup_flags = LOOKUP_EMPTY; in do_readlinkat() local 575 name = getname_flags(pathname, lookup_flags); in do_readlinkat() [all …]
|
| H A D | file_attr.c | 380 unsigned int lookup_flags = 0; in SYSCALL_DEFINE5() local 392 lookup_flags |= LOOKUP_FOLLOW; in SYSCALL_DEFINE5() 412 error = filename_lookup(dfd, name, lookup_flags, &filepath, in SYSCALL_DEFINE5() 437 unsigned int lookup_flags = 0; in SYSCALL_DEFINE5() local 449 lookup_flags |= LOOKUP_FOLLOW; in SYSCALL_DEFINE5() 478 error = filename_lookup(dfd, name, lookup_flags, &filepath, in SYSCALL_DEFINE5()
|
| H A D | namei.c | 1432 static int follow_automount(struct path *path, int *count, unsigned lookup_flags) in follow_automount() argument 1447 if (!(lookup_flags & (LOOKUP_PARENT | LOOKUP_DIRECTORY | in follow_automount() 1453 if (lookup_flags & LOOKUP_NO_XDEV) in follow_automount() 1469 int *count, unsigned lookup_flags) in __traverse_mounts() argument 1479 if (lookup_flags & LOOKUP_NO_XDEV) { in __traverse_mounts() 1500 if (unlikely(lookup_flags & LOOKUP_NO_XDEV)) { in __traverse_mounts() 1512 ret = follow_automount(path, count, lookup_flags); in __traverse_mounts() 1530 int *count, unsigned lookup_flags) in traverse_mounts() argument 1541 return __traverse_mounts(path, flags, jumped, count, lookup_flags); in traverse_mounts() 4157 int flags = op->lookup_flags; in do_filp_open() [all …]
|
| H A D | fhandle.c | 135 int lookup_flags; in SYSCALL_DEFINE5() local 159 lookup_flags = (flag & AT_SYMLINK_FOLLOW) ? LOOKUP_FOLLOW : 0; in SYSCALL_DEFINE5() 161 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE5() 162 err = user_path_at(dfd, name, lookup_flags, &path); in SYSCALL_DEFINE5()
|
| H A D | statfs.c | 101 unsigned int lookup_flags = LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT; in user_statfs() local 103 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in user_statfs() 107 if (retry_estale(error, lookup_flags)) { in user_statfs() 108 lookup_flags |= LOOKUP_REVAL; in user_statfs()
|
| H A D | internal.h | 185 int lookup_flags; member 288 unsigned int lookup_flags, struct kernel_xattr_ctx *ctx); 291 unsigned int lookup_flags, struct kernel_xattr_ctx *ctx);
|
| H A D | namespace.c | 115 unsigned int lookup_flags; member 2051 int lookup_flags = LOOKUP_MOUNTPOINT; in ksys_umount() local 2060 lookup_flags |= LOOKUP_FOLLOW; in ksys_umount() 2061 ret = user_path_at(AT_FDCWD, name, lookup_flags, &path); in ksys_umount() 3071 int lookup_flags = LOOKUP_AUTOMOUNT | LOOKUP_FOLLOW; in vfs_open_tree() local 3085 lookup_flags &= ~LOOKUP_AUTOMOUNT; in vfs_open_tree() 3087 lookup_flags &= ~LOOKUP_FOLLOW; in vfs_open_tree() 3089 lookup_flags |= LOOKUP_EMPTY; in vfs_open_tree() 3094 ret = user_path_at(dfd, filename, lookup_flags, &path); in vfs_open_tree() 4999 unsigned int lookup_flags = LOOKUP_AUTOMOUNT | LOOKUP_FOLLOW; in SYSCALL_DEFINE5() local [all …]
|
| H A D | exec.c | 772 .lookup_flags = LOOKUP_FOLLOW, in do_open_execat() 779 open_exec_flags.lookup_flags &= ~LOOKUP_FOLLOW; in do_open_execat() 781 open_exec_flags.lookup_flags |= LOOKUP_EMPTY; in do_open_execat()
|
| /linux/net/ipv6/netfilter/ |
| H A D | ip6t_rpfilter.c | 46 int lookup_flags; in rpfilter_lookup_reverse6() local 50 lookup_flags = RT6_LOOKUP_F_HAS_SADDR; in rpfilter_lookup_reverse6() 52 lookup_flags = 0; in rpfilter_lookup_reverse6() 58 lookup_flags |= RT6_LOOKUP_F_IFACE; in rpfilter_lookup_reverse6() 63 rt = (void *)ip6_route_lookup(net, &fl6, skb, lookup_flags); in rpfilter_lookup_reverse6()
|
| H A D | nft_fib_ipv6.c | 27 int lookup_flags = 0; in nft_fib6_flowi_init() local 42 lookup_flags |= RT6_LOOKUP_F_IFACE; in nft_fib6_flowi_init() 47 lookup_flags |= RT6_LOOKUP_F_HAS_SADDR; in nft_fib6_flowi_init() 55 return lookup_flags; in nft_fib6_flowi_init() 170 int lookup_flags; in nft_fib6_eval() local 193 lookup_flags = nft_fib6_flowi_init(&fl6, priv, pkt, oif, iph); in nft_fib6_eval() 197 lookup_flags); in nft_fib6_eval()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | fib_lookup.c | 11 int lookup_flags = 0; variable 17 lookup_flags); in fib_lookup()
|
| /linux/drivers/reset/ |
| H A D | core.c | 856 unsigned int lookup_flags; in __reset_add_reset_gpio_lookup() local 892 lookup_flags = GPIO_PERSISTENT; in __reset_add_reset_gpio_lookup() 893 lookup_flags |= of_flags & GPIO_ACTIVE_LOW; in __reset_add_reset_gpio_lookup() 895 lookup_flags); in __reset_add_reset_gpio_lookup()
|
| /linux/fs/smb/server/ |
| H A D | vfs.c | 693 int err, lookup_flags = LOOKUP_NO_SYMLINKS; in ksmbd_vfs_rename() local 714 err = vfs_path_parent_lookup(to, lookup_flags | LOOKUP_BENEATH, in ksmbd_vfs_rename() 753 lookup_flags | target_lookup_flags); in ksmbd_vfs_rename() 795 if (retry_estale(err, lookup_flags)) { in ksmbd_vfs_rename() 796 lookup_flags |= LOOKUP_REVAL; in ksmbd_vfs_rename()
|
| /linux/fs/notify/fanotify/ |
| H A D | fanotify_user.c | 1214 unsigned int lookup_flags = 0; in fanotify_find_path() local 1217 lookup_flags |= LOOKUP_FOLLOW; in fanotify_find_path() 1219 lookup_flags |= LOOKUP_DIRECTORY; in fanotify_find_path() 1221 ret = user_path_at(dfd, filename, lookup_flags, path); in fanotify_find_path()
|
| /linux/io_uring/ |
| H A D | openclose.c | 133 op.lookup_flags |= LOOKUP_CACHED; in io_openat2()
|
| /linux/fs/nfs/ |
| H A D | dir.c | 2068 unsigned int lookup_flags = 0; in nfs_atomic_open() local 2094 lookup_flags = LOOKUP_OPEN|LOOKUP_DIRECTORY; in nfs_atomic_open() 2175 res = nfs_lookup(dir, dentry, lookup_flags); in nfs_atomic_open() 2178 if ((lookup_flags & LOOKUP_DIRECTORY) && inode && in nfs_atomic_open() 2185 if ((lookup_flags & LOOKUP_DIRECTORY) && inode && in nfs_atomic_open()
|