Searched refs:dup_fd (Results 1 – 5 of 5) sorted by relevance
/linux-6.14.4/tools/perf/util/ |
D | hwmon_pmu.c | 240 int dup_fd, err = 0; in hwmon_pmu__read_events() local 251 dup_fd = openat(pmu->hwmon_dir_fd, ".", O_DIRECTORY); in hwmon_pmu__read_events() 253 if (dup_fd == -1) in hwmon_pmu__read_events() 256 dir = fdopendir(dup_fd); in hwmon_pmu__read_events() 258 close(dup_fd); in hwmon_pmu__read_events()
|
/linux-6.14.4/include/linux/ |
D | fdtable.h | 107 struct files_struct *dup_fd(struct files_struct *, struct fd_range *) __latent_entropy;
|
/linux-6.14.4/fs/ |
D | file.c | 363 struct files_struct *dup_fd(struct files_struct *oldf, struct fd_range *punch_hole) in dup_fd() function 800 fds = dup_fd(cur_fds, punch_hole); in SYSCALL_DEFINE3()
|
/linux-6.14.4/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 3847 int dup_fd, pipe_fds[2]; in TEST() local 3852 dup_fd = dup(pipe_fds[0]); in TEST() 3853 ASSERT_GE(dup_fd, 0); in TEST() 3854 EXPECT_NE(pipe_fds[0], dup_fd); in TEST() 3857 ASSERT_EQ(filecmp(self, self, pipe_fds[0], dup_fd), 0); in TEST()
|
/linux-6.14.4/kernel/ |
D | fork.c | 1810 newf = dup_fd(oldf, NULL); in copy_files() 3279 fd = dup_fd(fd, NULL); in unshare_fd()
|