Home
last modified time | relevance | path

Searched refs:lookup_flags (Results 1 – 22 of 22) sorted by relevance

/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dfib_lookup.c51 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,
84 .lookup_flags = BPF_FIB_LOOKUP_DIRECT | BPF_FIB_LOOKUP_TBID,
124 .lookup_flags = BPF_FIB_LOOKUP_SKIP_NEIGH,
143 .lookup_flags = BPF_FIB_LOOKUP_SKIP_NEIGH,
227 if (!(test->lookup_flags & BPF_FIB_LOOKUP_SRC)) { in set_lookup_params()
241 if (!(test->lookup_flags & BPF_FIB_LOOKUP_SRC)) { in set_lookup_params()
340 skel->bss->lookup_flags = tests[i].lookup_flags; in test_fib_lookup()
[all …]
/linux-6.15/fs/
H A Dopen.c142 lookup_flags |= LOOKUP_REVAL; in do_sys_truncate()
480 lookup_flags |= LOOKUP_EMPTY; in do_faccessat()
525 lookup_flags |= LOOKUP_REVAL; in do_faccessat()
570 lookup_flags |= LOOKUP_REVAL; in SYSCALL_DEFINE1()
620 lookup_flags |= LOOKUP_REVAL; in SYSCALL_DEFINE1()
678 unsigned int lookup_flags; in do_fchmodat() local
685 lookup_flags |= LOOKUP_EMPTY; in do_fchmodat()
798 int lookup_flags; in do_fchownat() local
805 lookup_flags |= LOOKUP_EMPTY; in do_fchownat()
1234 int lookup_flags = 0; in build_open_flags() local
[all …]
H A Dxattr.c670 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()
820 lookup_flags |= LOOKUP_REVAL; in filename_getxattr()
856 int lookup_flags = 0; in path_getxattrat() local
858 lookup_flags = LOOKUP_FOLLOW; in path_getxattrat()
949 unsigned int lookup_flags, in filename_listxattr() argument
961 lookup_flags |= LOOKUP_REVAL; in filename_listxattr()
974 int lookup_flags; in path_listxattrat() local
1057 lookup_flags |= LOOKUP_REVAL; in filename_removexattr()
[all …]
H A Dfsopen.c161 unsigned int lookup_flags; in SYSCALL_DEFINE3() local
173 lookup_flags = LOOKUP_FOLLOW | LOOKUP_AUTOMOUNT; in SYSCALL_DEFINE3()
175 lookup_flags &= ~LOOKUP_FOLLOW; in SYSCALL_DEFINE3()
177 lookup_flags &= ~LOOKUP_AUTOMOUNT; in SYSCALL_DEFINE3()
179 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE3()
180 ret = user_path_at(dfd, path, lookup_flags, &target); in SYSCALL_DEFINE3()
353 int lookup_flags = 0; in SYSCALL_DEFINE5() local
441 lookup_flags = LOOKUP_EMPTY; in SYSCALL_DEFINE5()
445 param.name = getname_flags(_value, lookup_flags); in SYSCALL_DEFINE5()
H A Dinit.c32 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 Dutimes.c84 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 Dstat.c283 int lookup_flags = 0; in statx_lookup_flags() local
286 lookup_flags |= LOOKUP_FOLLOW; in statx_lookup_flags()
288 lookup_flags |= LOOKUP_AUTOMOUNT; in statx_lookup_flags()
290 return lookup_flags; in statx_lookup_flags()
342 unsigned int lookup_flags = statx_lookup_flags(flags); in vfs_statx() local
355 if (retry_estale(error, lookup_flags)) { in vfs_statx()
356 lookup_flags |= LOOKUP_REVAL; in vfs_statx()
561 unsigned int lookup_flags = LOOKUP_EMPTY; in do_readlinkat() local
567 name = getname_flags(pathname, lookup_flags); in do_readlinkat()
589 if (retry_estale(error, lookup_flags)) { in do_readlinkat()
[all …]
H A Dnamei.c4062 int flags = op->lookup_flags; in do_filp_open()
4081 int flags = op->lookup_flags; in do_file_open_root()
4259 unsigned int lookup_flags = 0; in do_mknodat() local
4295 lookup_flags |= LOOKUP_REVAL; in do_mknodat()
4399 lookup_flags |= LOOKUP_REVAL; in do_mkdirat()
4479 unsigned int lookup_flags = 0; in do_rmdir() local
4518 lookup_flags |= LOOKUP_REVAL; in do_rmdir()
4616 unsigned int lookup_flags = 0; in do_unlinkat() local
4661 lookup_flags |= LOOKUP_REVAL; in do_unlinkat()
4735 unsigned int lookup_flags = 0; in do_symlinkat() local
[all …]
H A Dfhandle.c134 int lookup_flags; in SYSCALL_DEFINE5() local
158 lookup_flags = (flag & AT_SYMLINK_FOLLOW) ? LOOKUP_FOLLOW : 0; in SYSCALL_DEFINE5()
160 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE5()
161 err = user_path_at(dfd, name, lookup_flags, &path); in SYSCALL_DEFINE5()
H A Dinternal.h183 int lookup_flags; member
286 unsigned int lookup_flags, struct kernel_xattr_ctx *ctx);
289 unsigned int lookup_flags, struct kernel_xattr_ctx *ctx);
H A Dstatfs.c101 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 Dnamespace.c99 unsigned int lookup_flags; member
2151 int lookup_flags = LOOKUP_MOUNTPOINT; in ksys_umount() local
2160 lookup_flags |= LOOKUP_FOLLOW; in ksys_umount()
3158 int lookup_flags = LOOKUP_AUTOMOUNT | LOOKUP_FOLLOW; in vfs_open_tree() local
3172 lookup_flags &= ~LOOKUP_AUTOMOUNT; in vfs_open_tree()
3174 lookup_flags &= ~LOOKUP_FOLLOW; in vfs_open_tree()
3176 lookup_flags |= LOOKUP_EMPTY; in vfs_open_tree()
5243 lookup_flags &= ~LOOKUP_AUTOMOUNT; in SYSCALL_DEFINE5()
5245 lookup_flags &= ~LOOKUP_FOLLOW; in SYSCALL_DEFINE5()
5247 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE5()
[all …]
H A Dexec.c135 .lookup_flags = LOOKUP_FOLLOW, in SYSCALL_DEFINE1()
882 .lookup_flags = LOOKUP_FOLLOW, in do_open_execat()
889 open_exec_flags.lookup_flags &= ~LOOKUP_FOLLOW; in do_open_execat()
891 open_exec_flags.lookup_flags |= LOOKUP_EMPTY; in do_open_execat()
/linux-6.15/net/ipv6/netfilter/
H A Dip6t_rpfilter.c46 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 Dnft_fib_ipv6.c27 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()
54 return lookup_flags; in nft_fib6_flowi_init()
171 int lookup_flags; in nft_fib6_eval() local
194 lookup_flags = nft_fib6_flowi_init(&fl6, priv, pkt, oif, iph); in nft_fib6_eval()
198 lookup_flags); in nft_fib6_eval()
/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dfib_lookup.c11 int lookup_flags = 0; variable
17 lookup_flags); in fib_lookup()
/linux-6.15/fs/bcachefs/
H A Dfs-ioctl.c211 unsigned lookup_flags = 0; in bch2_ioctl_subvolume_create() local
254 &dst_path, lookup_flags); in bch2_ioctl_subvolume_create()
/linux-6.15/drivers/reset/
H A Dcore.c856 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-6.15/fs/smb/server/
H A Dvfs.c684 int err, lookup_flags = LOOKUP_NO_SYMLINKS; in ksmbd_vfs_rename() local
705 err = vfs_path_parent_lookup(to, lookup_flags | LOOKUP_BENEATH, in ksmbd_vfs_rename()
744 lookup_flags | target_lookup_flags); in ksmbd_vfs_rename()
787 if (retry_estale(err, lookup_flags)) { in ksmbd_vfs_rename()
788 lookup_flags |= LOOKUP_REVAL; in ksmbd_vfs_rename()
/linux-6.15/fs/notify/fanotify/
H A Dfanotify_user.c1117 unsigned int lookup_flags = 0; in fanotify_find_path() local
1120 lookup_flags |= LOOKUP_FOLLOW; in fanotify_find_path()
1122 lookup_flags |= LOOKUP_DIRECTORY; in fanotify_find_path()
1124 ret = user_path_at(dfd, filename, lookup_flags, path); in fanotify_find_path()
/linux-6.15/io_uring/
H A Dopenclose.c130 op.lookup_flags |= LOOKUP_CACHED; in io_openat2()
/linux-6.15/fs/nfs/
H A Ddir.c2070 unsigned int lookup_flags = 0; in nfs_atomic_open() local
2096 lookup_flags = LOOKUP_OPEN|LOOKUP_DIRECTORY; in nfs_atomic_open()
2177 res = nfs_lookup(dir, dentry, lookup_flags); in nfs_atomic_open()
2180 if ((lookup_flags & LOOKUP_DIRECTORY) && inode && in nfs_atomic_open()
2187 if ((lookup_flags & LOOKUP_DIRECTORY) && inode && in nfs_atomic_open()