/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
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-6.12.1/fs/ |
D | open.c | 124 unsigned int lookup_flags = LOOKUP_FOLLOW; in do_sys_truncate() local 132 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate() 137 if (retry_estale(error, lookup_flags)) { in do_sys_truncate() 138 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 …]
|
D | fsopen.c | 161 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() 354 int lookup_flags = 0; in SYSCALL_DEFINE5() local 446 lookup_flags = LOOKUP_EMPTY; in SYSCALL_DEFINE5() 450 param.name = getname_flags(_value, lookup_flags); in SYSCALL_DEFINE5()
|
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()
|
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()
|
D | stat.c | 236 int lookup_flags = 0; in getname_statx_lookup_flags() local 239 lookup_flags |= LOOKUP_FOLLOW; in getname_statx_lookup_flags() 241 lookup_flags |= LOOKUP_AUTOMOUNT; in getname_statx_lookup_flags() 243 lookup_flags |= LOOKUP_EMPTY; in getname_statx_lookup_flags() 245 return lookup_flags; in getname_statx_lookup_flags() 304 unsigned int lookup_flags = getname_statx_lookup_flags(flags); in vfs_statx() local 312 error = filename_lookup(dfd, filename, lookup_flags, &path, NULL); in vfs_statx() 317 if (retry_estale(error, lookup_flags)) { in vfs_statx() 318 lookup_flags |= LOOKUP_REVAL; in vfs_statx() 530 unsigned int lookup_flags = LOOKUP_EMPTY; in do_readlinkat() local [all …]
|
D | xattr.c | 635 size_t size, int flags, unsigned int lookup_flags) in path_setxattr() argument 653 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr() 662 if (retry_estale(error, lookup_flags)) { in path_setxattr() 663 lookup_flags |= LOOKUP_REVAL; in path_setxattr() 780 size_t size, unsigned int lookup_flags) in path_getxattr() argument 785 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_getxattr() 790 if (retry_estale(error, lookup_flags)) { in path_getxattr() 791 lookup_flags |= LOOKUP_REVAL; in path_getxattr() 857 size_t size, unsigned int lookup_flags) in path_listxattr() argument 862 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_listxattr() [all …]
|
D | namei.c | 1371 static int follow_automount(struct path *path, int *count, unsigned lookup_flags) in follow_automount() argument 1386 if (!(lookup_flags & (LOOKUP_PARENT | LOOKUP_DIRECTORY | in follow_automount() 1404 int *count, unsigned lookup_flags) in __traverse_mounts() argument 1439 ret = follow_automount(path, count, lookup_flags); in __traverse_mounts() 1457 int *count, unsigned lookup_flags) in traverse_mounts() argument 1468 return __traverse_mounts(path, flags, jumped, count, lookup_flags); in traverse_mounts() 3956 int flags = op->lookup_flags; in do_filp_open() 3975 int flags = op->lookup_flags; in do_file_open_root() 3996 struct path *path, unsigned int lookup_flags) in filename_create() argument 4000 bool want_dir = lookup_flags & LOOKUP_DIRECTORY; in filename_create() [all …]
|
D | fhandle.c | 111 int lookup_flags; in SYSCALL_DEFINE5() local 119 lookup_flags = (flag & AT_SYMLINK_FOLLOW) ? LOOKUP_FOLLOW : 0; in SYSCALL_DEFINE5() 122 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE5() 123 err = user_path_at(dfd, name, lookup_flags, &path); in SYSCALL_DEFINE5()
|
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()
|
D | namespace.c | 89 unsigned int lookup_flags; member 2023 int lookup_flags = LOOKUP_MOUNTPOINT; in ksys_umount() local 2032 lookup_flags |= LOOKUP_FOLLOW; in ksys_umount() 2033 ret = user_path_at(AT_FDCWD, name, lookup_flags, &path); in ksys_umount() 2843 int lookup_flags = LOOKUP_AUTOMOUNT | LOOKUP_FOLLOW; in SYSCALL_DEFINE3() local 2859 lookup_flags &= ~LOOKUP_AUTOMOUNT; in SYSCALL_DEFINE3() 2861 lookup_flags &= ~LOOKUP_FOLLOW; in SYSCALL_DEFINE3() 2863 lookup_flags |= LOOKUP_EMPTY; in SYSCALL_DEFINE3() 2872 error = user_path_at(dfd, filename, lookup_flags, &path); in SYSCALL_DEFINE3() 4737 unsigned int lookup_flags = LOOKUP_AUTOMOUNT | LOOKUP_FOLLOW; in build_mount_kattr() local [all …]
|
D | exec.c | 135 .lookup_flags = LOOKUP_FOLLOW, in SYSCALL_DEFINE1() 891 .lookup_flags = LOOKUP_FOLLOW, in do_open_execat() 897 open_exec_flags.lookup_flags &= ~LOOKUP_FOLLOW; in do_open_execat() 899 open_exec_flags.lookup_flags |= LOOKUP_EMPTY; in do_open_execat()
|
D | internal.h | 180 int lookup_flags; member
|
/linux-6.12.1/io_uring/ |
D | xattr.c | 126 unsigned int lookup_flags = LOOKUP_FOLLOW; in io_getxattr() local 133 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_getxattr() 138 if (retry_estale(ret, lookup_flags)) { in io_getxattr() 139 lookup_flags |= LOOKUP_REVAL; in io_getxattr() 235 unsigned int lookup_flags = LOOKUP_FOLLOW; in io_setxattr() local 242 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_setxattr() 246 if (retry_estale(ret, lookup_flags)) { in io_setxattr() 247 lookup_flags |= LOOKUP_REVAL; in io_setxattr()
|
D | openclose.c | 130 op.lookup_flags |= LOOKUP_CACHED; in io_openat2()
|
/linux-6.12.1/net/ipv6/netfilter/ |
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()
|
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() 54 return lookup_flags; in nft_fib6_flowi_init() 171 int lookup_flags; in nft_fib6_eval() local 184 lookup_flags = nft_fib6_flowi_init(&fl6, priv, pkt, oif, iph); in nft_fib6_eval() 197 lookup_flags); in nft_fib6_eval()
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | fib_lookup.c | 11 int lookup_flags = 0; variable 17 lookup_flags); in fib_lookup()
|
/linux-6.12.1/fs/bcachefs/ |
D | fs-ioctl.c | 385 unsigned lookup_flags = 0; in bch2_ioctl_subvolume_create() local 428 &dst_path, lookup_flags); in bch2_ioctl_subvolume_create() 490 if (retry_estale(error, lookup_flags)) { in bch2_ioctl_subvolume_create() 491 lookup_flags |= LOOKUP_REVAL; in bch2_ioctl_subvolume_create()
|
/linux-6.12.1/drivers/reset/ |
D | core.c | 849 unsigned int lookup_flags; in __reset_add_reset_gpio_lookup() local 885 lookup_flags = GPIO_PERSISTENT; in __reset_add_reset_gpio_lookup() 886 lookup_flags |= of_flags & GPIO_ACTIVE_LOW; in __reset_add_reset_gpio_lookup() 888 lookup_flags); in __reset_add_reset_gpio_lookup()
|
/linux-6.12.1/fs/smb/server/ |
D | vfs.c | 695 int err, lookup_flags = LOOKUP_NO_SYMLINKS; in ksmbd_vfs_rename() local 707 err = vfs_path_parent_lookup(to, lookup_flags | LOOKUP_BENEATH, in ksmbd_vfs_rename() 746 lookup_flags | LOOKUP_RENAME_TARGET); in ksmbd_vfs_rename() 799 if (retry_estale(err, lookup_flags)) { in ksmbd_vfs_rename() 800 lookup_flags |= LOOKUP_REVAL; in ksmbd_vfs_rename()
|
/linux-6.12.1/fs/notify/fanotify/ |
D | fanotify_user.c | 1023 unsigned int lookup_flags = 0; in fanotify_find_path() local 1026 lookup_flags |= LOOKUP_FOLLOW; in fanotify_find_path() 1028 lookup_flags |= LOOKUP_DIRECTORY; in fanotify_find_path() 1030 ret = user_path_at(dfd, filename, lookup_flags, path); in fanotify_find_path()
|
/linux-6.12.1/fs/nfs/ |
D | dir.c | 2077 unsigned int lookup_flags = 0; in nfs_atomic_open() local 2103 lookup_flags = LOOKUP_OPEN|LOOKUP_DIRECTORY; in nfs_atomic_open() 2184 res = nfs_lookup(dir, dentry, lookup_flags); in nfs_atomic_open() 2187 if ((lookup_flags & LOOKUP_DIRECTORY) && inode && in nfs_atomic_open() 2194 if ((lookup_flags & LOOKUP_DIRECTORY) && inode && in nfs_atomic_open()
|