Symbol: proc_fd
fs/proc/fd.c
155
fd = proc_fd(inode);
fs/proc/fd.c
181
unsigned int fd = proc_fd(d_inode(dentry));
fs/proc/fd.c
37
unsigned int fd = proc_fd(m->private);
tools/testing/selftests/iommu/iommufd_fail_nth.c
126
res = pread(nth_state->proc_fd, buf, sizeof(buf), 0);
tools/testing/selftests/iommu/iommufd_fail_nth.c
133
res2 = pwrite(nth_state->proc_fd, disable_nth,
tools/testing/selftests/iommu/iommufd_fail_nth.c
136
res2 = pwrite(nth_state->proc_fd, disable_nth,
tools/testing/selftests/iommu/iommufd_fail_nth.c
172
ASSERT_EQ(len, pwrite(nth_state->proc_fd, buf, len, 0));
tools/testing/selftests/iommu/iommufd_fail_nth.c
88
int proc_fd;
tools/testing/selftests/iommu/iommufd_fail_nth.c
98
nth_state->proc_fd = open(buf, O_RDWR);
tools/testing/selftests/iommu/iommufd_fail_nth.c
99
ASSERT_NE(-1, nth_state->proc_fd);
tools/testing/selftests/landlock/fs_test.c
3581
int reg_fd, proc_fd;
tools/testing/selftests/landlock/fs_test.c
3597
proc_fd = open_proc_fd(_metadata, reg_fd, O_RDONLY | O_CLOEXEC);
tools/testing/selftests/landlock/fs_test.c
3598
ASSERT_LE(0, proc_fd);
tools/testing/selftests/landlock/fs_test.c
3599
ASSERT_EQ(0, close(proc_fd));
tools/testing/selftests/landlock/fs_test.c
3601
proc_fd = open_proc_fd(_metadata, reg_fd, O_RDWR | O_CLOEXEC);
tools/testing/selftests/landlock/fs_test.c
3602
ASSERT_EQ(-1, proc_fd)
tools/testing/selftests/landlock/fs_test.c
3614
int proc_fd;
tools/testing/selftests/landlock/fs_test.c
3647
proc_fd = open_proc_fd(_metadata, pipe_fds[1], O_WRONLY | O_CLOEXEC);
tools/testing/selftests/landlock/fs_test.c
3648
ASSERT_LE(0, proc_fd);
tools/testing/selftests/landlock/fs_test.c
3649
ASSERT_EQ(1, write(proc_fd, ".", 1))
tools/testing/selftests/landlock/fs_test.c
3654
ASSERT_EQ(0, close(proc_fd));
tools/testing/selftests/landlock/fs_test.c
3657
proc_fd = open_proc_fd(_metadata, pipe_fds[0], O_RDONLY | O_CLOEXEC);
tools/testing/selftests/landlock/fs_test.c
3658
ASSERT_LE(0, proc_fd);
tools/testing/selftests/landlock/fs_test.c
3660
ASSERT_EQ(1, read(proc_fd, &buf, 1))
tools/testing/selftests/landlock/fs_test.c
3665
ASSERT_EQ(0, close(proc_fd));
tools/testing/selftests/mm/guard-regions.c
2094
int proc_fd;
tools/testing/selftests/mm/guard-regions.c
2098
proc_fd = open("/proc/self/pagemap", O_RDONLY);
tools/testing/selftests/mm/guard-regions.c
2099
ASSERT_NE(proc_fd, -1);
tools/testing/selftests/mm/guard-regions.c
2108
unsigned long entry = pagemap_get_entry(proc_fd, ptr_p);
tools/testing/selftests/mm/guard-regions.c
2124
unsigned long entry = pagemap_get_entry(proc_fd, ptr_p);
tools/testing/selftests/mm/guard-regions.c
2130
ASSERT_EQ(close(proc_fd), 0);
tools/testing/selftests/mm/guard-regions.c
2148
int proc_fd, i;
tools/testing/selftests/mm/guard-regions.c
2151
proc_fd = open("/proc/self/pagemap", O_RDONLY);
tools/testing/selftests/mm/guard-regions.c
2152
ASSERT_NE(proc_fd, -1);
tools/testing/selftests/mm/guard-regions.c
2160
ASSERT_EQ(ioctl(proc_fd, PAGEMAP_SCAN, &pm_scan_args), 0);
tools/testing/selftests/mm/guard-regions.c
2174
ASSERT_EQ(ioctl(proc_fd, PAGEMAP_SCAN, &pm_scan_args), 5);
tools/testing/selftests/mm/guard-regions.c
2186
ASSERT_EQ(close(proc_fd), 0);
tools/testing/selftests/net/tcp_fastopen_backup_key.c
322
proc_fd = open(PROC_FASTOPEN_KEY, O_RDWR);
tools/testing/selftests/net/tcp_fastopen_backup_key.c
323
if (proc_fd < 0)
tools/testing/selftests/net/tcp_fastopen_backup_key.c
330
close(proc_fd);
tools/testing/selftests/net/tcp_fastopen_backup_key.c
44
static int proc_fd;
tools/testing/selftests/net/tcp_fastopen_backup_key.c
59
lseek(proc_fd, 0, SEEK_SET);
tools/testing/selftests/net/tcp_fastopen_backup_key.c
60
if (read(proc_fd, buf, sizeof(buf)) <= 0)
tools/testing/selftests/net/tcp_fastopen_backup_key.c
84
lseek(proc_fd, 0, SEEK_SET);
tools/testing/selftests/net/tcp_fastopen_backup_key.c
85
if (write(proc_fd, buf, sizeof(buf)) <= 0)
tools/testing/selftests/pidfd/pidfd_setns_test.c
106
proc_fd = open("/proc/self/ns", O_DIRECTORY | O_CLOEXEC);
tools/testing/selftests/pidfd/pidfd_setns_test.c
107
ASSERT_GE(proc_fd, 0) {
tools/testing/selftests/pidfd/pidfd_setns_test.c
119
self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC);
tools/testing/selftests/pidfd/pidfd_setns_test.c
269
self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC);
tools/testing/selftests/pidfd/pidfd_setns_test.c
320
close(proc_fd);
tools/testing/selftests/pidfd/pidfd_setns_test.c
93
int i, proc_fd, ret;