Home
last modified time | relevance | path

Searched refs:fd2 (Results 1 – 11 of 11) sorted by relevance

/linux-4.4.14/tools/testing/selftests/memfd/
Dmemfd_test.c391 int r, fd2; in mfd_assert_shrink() local
401 fd2 = mfd_assert_open(fd, in mfd_assert_shrink()
404 close(fd2); in mfd_assert_shrink()
734 int fd, fd2; in test_share_dup() local
741 fd2 = mfd_assert_dup(fd); in test_share_dup()
742 mfd_assert_has_seals(fd2, 0); in test_share_dup()
746 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_dup()
748 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_dup()
750 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_dup()
754 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_dup()
[all …]
/linux-4.4.14/tools/perf/tests/
Dbp_signal.c31 static int fd2; variable
56 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler()
156 fd2 = bp_event(sig_handler, 0); in test__bp_signal()
159 ioctl(fd2, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal()
168 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in test__bp_signal()
171 count2 = bp_count(fd2); in test__bp_signal()
174 close(fd2); in test__bp_signal()
/linux-4.4.14/tools/testing/selftests/kcmp/
Dkcmp_test.c22 static long sys_kcmp(int pid1, int pid2, int type, int fd1, int fd2) in sys_kcmp() argument
24 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in sys_kcmp()
31 int fd1, fd2; in main() local
52 fd2 = open(kpath, O_RDWR, 0644); in main()
53 if (fd2 < 0) { in main()
63 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main()
/linux-4.4.14/drivers/staging/android/uapi/
Dsync.h24 __s32 fd2; /* fd of second fence */ member
/linux-4.4.14/include/linux/
Daudit.h247 extern void __audit_fd_pair(int fd1, int fd2);
263 static inline void audit_fd_pair(int fd1, int fd2) in audit_fd_pair() argument
266 __audit_fd_pair(fd1, fd2); in audit_fd_pair()
410 static inline void audit_fd_pair(int fd1, int fd2) in audit_fd_pair() argument
/linux-4.4.14/net/
Dsocket.c1258 int fd1, fd2, err; in SYSCALL_DEFINE4() local
1293 fd2 = get_unused_fd_flags(flags); in SYSCALL_DEFINE4()
1294 if (unlikely(fd2 < 0)) { in SYSCALL_DEFINE4()
1295 err = fd2; in SYSCALL_DEFINE4()
1315 err = put_user(fd2, &usockvec[1]); in SYSCALL_DEFINE4()
1319 audit_fd_pair(fd1, fd2); in SYSCALL_DEFINE4()
1322 fd_install(fd2, newfile2); in SYSCALL_DEFINE4()
1332 put_unused_fd(fd2); in SYSCALL_DEFINE4()
1338 put_unused_fd(fd2); in SYSCALL_DEFINE4()
1344 put_unused_fd(fd2); in SYSCALL_DEFINE4()
/linux-4.4.14/Documentation/powerpc/
Dcxlflash.txt153 referred to as fd2) that is used by the block library to initiate
162 and fd2) that are provided back to the user:
177 - A close on fd2 will invalidate the tokens. This operation is not
264 and fd2 as the parent, but under a different context.
/linux-4.4.14/drivers/staging/android/
Dsync.c585 fence2 = sync_fence_fdget(data.fd2); in sync_fence_ioctl_merge()
/linux-4.4.14/kernel/
Dauditsc.c2185 void __audit_fd_pair(int fd1, int fd2) in __audit_fd_pair() argument
2189 context->fds[1] = fd2; in __audit_fd_pair()
/linux-4.4.14/arch/m68k/ifpsp060/
Dftest.sa32 dc.l $42aefea0,$487b0170,$00000fd2,$61ff0000
/linux-4.4.14/Documentation/
Ddevices.txt137 2 = /dev/fd2 Controller 0, drive 2, autodetect