/linux/tools/testing/selftests/proc/ |
H A D | read.c | 45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg() 60 fd = openat(dirfd(d), filename, O_WRONLY); in f_reg_write() 73 rv = readlinkat(dirfd(d), filename, buf, sizeof(buf)); in f_lnk() 109 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f() 137 if (fstatfs(dirfd(d), &sfs) == -1) { in main()
|
H A D | fd-003-kthread.c | 116 static inline int sys_statx(int dirfd, const char *pathname, int flags, in sys_statx() argument 119 return syscall(SYS_statx, dirfd, pathname, flags, mask, stx); in sys_statx()
|
H A D | fd-001-lookup.c | 136 if (fd == dirfd(d)) in main()
|
H A D | proc-pid-vm.c | 52 static inline long sys_execveat(int dirfd, const char *pathname, char **argv, char **envp, int flag… in sys_execveat() argument 54 return syscall(SYS_execveat, dirfd, pathname, argv, envp, flags); in sys_execveat()
|
/linux/tools/testing/selftests/openat2/ |
H A D | rename_attack_test.c | 55 pid_t spawn_attack(int dirfd, char *a, char *b) in spawn_attack() argument 66 renameat2(dirfd, a, dirfd, b, RENAME_EXCHANGE); in spawn_attack()
|
/linux/tools/testing/selftests/bpf/ |
H A D | cgroup_helpers.c | 434 int dirfd, err, flags, mount_id, fhsize; in get_cgroup_id_from_path() local 442 dirfd = AT_FDCWD; in get_cgroup_id_from_path() 450 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id_from_path() 462 err = name_to_handle_at(dirfd, cgroup_workdir, fhp2, &mount_id, flags); in get_cgroup_id_from_path()
|
/linux/fs/ |
H A D | fs_parser.c | 160 param->dirfd = AT_FDCWD; in fs_lookup_param() 171 ret = filename_lookup(param->dirfd, f, flags, _path, NULL); in fs_lookup_param() 302 result->uint_32 = param->dirfd; in fs_param_is_fd() 322 result->uint_32 = param->dirfd; in fs_param_is_file_or_string()
|
H A D | fsopen.c | 450 param.dirfd = aux; in SYSCALL_DEFINE5() 459 param.dirfd = aux; in SYSCALL_DEFINE5()
|
/linux/tools/testing/selftests/iommu/ |
H A D | iommufd_fail_nth.c | 68 if (writeat(dirfd(debugfs), "failslab/ignore-gfp-wait", "N")) in setup_fault_injection() 70 writeat(dirfd(debugfs), "fail_page_alloc/ignore-gfp-wait", "N"); in setup_fault_injection() 71 writeat(dirfd(debugfs), "fail_page_alloc/ignore-gfp-highmem", "N"); in setup_fault_injection() 81 writeat(dirfd(debugfs), fn, "0"); in setup_fault_injection()
|
/linux/fs/nfs/ |
H A D | nfs4super.c | 158 .dirfd = -1, in do_nfs4_mount() 164 .dirfd = -1, in do_nfs4_mount()
|
/linux/fs/bcachefs/ |
H A D | fs-ioctl.c | 411 error = user_path_at(arg.dirfd, in bch2_ioctl_subvolume_create() 426 dst_dentry = user_path_create(arg.dirfd, in bch2_ioctl_subvolume_create() 505 victim = user_path_locked_at(arg.dirfd, name, &path); in bch2_ioctl_subvolume_destroy()
|
H A D | bcachefs_ioctl.h | 392 __u32 dirfd; member
|
/linux/include/linux/ |
H A D | fs_context.h | 73 int dirfd; member
|
/linux/tools/power/cpupower/lib/ |
H A D | powercap.c | 225 if (fstatat(dirfd(zone_dir), dent->d_name, &st, 0) < 0) in powercap_read_zone()
|
/linux/tools/perf/util/ |
H A D | evsel.c | 3607 fd_dir_fd = openat(dirfd(proc_dir), buf, O_DIRECTORY); in dump_perf_event_processes() 3629 cmdline_fd = openat(dirfd(proc_dir), buf, O_RDONLY); in dump_perf_event_processes()
|