Home
last modified time | relevance | path

Searched refs:dirfd (Results 1 – 15 of 15) sorted by relevance

/linux/tools/testing/selftests/proc/
H A Dread.c45 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 Dfd-003-kthread.c116 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 Dfd-001-lookup.c136 if (fd == dirfd(d)) in main()
H A Dproc-pid-vm.c52 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 Drename_attack_test.c55 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 Dcgroup_helpers.c434 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 Dfs_parser.c160 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 Dfsopen.c450 param.dirfd = aux; in SYSCALL_DEFINE5()
459 param.dirfd = aux; in SYSCALL_DEFINE5()
/linux/tools/testing/selftests/iommu/
H A Diommufd_fail_nth.c68 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 Dnfs4super.c158 .dirfd = -1, in do_nfs4_mount()
164 .dirfd = -1, in do_nfs4_mount()
/linux/fs/bcachefs/
H A Dfs-ioctl.c411 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 Dbcachefs_ioctl.h392 __u32 dirfd; member
/linux/include/linux/
H A Dfs_context.h73 int dirfd; member
/linux/tools/power/cpupower/lib/
H A Dpowercap.c225 if (fstatat(dirfd(zone_dir), dent->d_name, &st, 0) < 0) in powercap_read_zone()
/linux/tools/perf/util/
H A Devsel.c3607 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()