/Linux-v4.19/tools/testing/selftests/memfd/ |
D | memfd_test.c | 404 int r, fd2; in mfd_assert_shrink() local 414 fd2 = mfd_assert_open(fd, in mfd_assert_shrink() 417 close(fd2); in mfd_assert_shrink() 779 int fd, fd2; in test_share_dup() local 788 fd2 = mfd_assert_dup(fd); in test_share_dup() 789 mfd_assert_has_seals(fd2, 0); in test_share_dup() 793 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_dup() 795 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_dup() 797 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_dup() 801 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_dup() [all …]
|
/Linux-v4.19/tools/perf/tests/ |
D | bp_signal.c | 32 static int fd2; variable 80 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2() 101 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler() 241 fd2 = bp_event(sig_handler, SIGUSR1); in test__bp_signal() 245 ioctl(fd2, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal() 255 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in test__bp_signal() 259 count2 = bp_count(fd2); in test__bp_signal() 263 close(fd2); in test__bp_signal()
|
/Linux-v4.19/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 23 static long sys_kcmp(int pid1, int pid2, int type, unsigned long fd1, unsigned long fd2) in sys_kcmp() argument 25 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in sys_kcmp() 37 int fd1, fd2; in main() local 91 fd2 = open(kpath, O_RDWR, 0644); in main() 92 if (fd2 < 0) { in main() 102 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main()
|
/Linux-v4.19/tools/testing/selftests/proc/ |
D | fd-002-posix-eq.c | 27 int fd0, fd1, fd2; in main() local 40 fd2 = open(buf, O_RDONLY); in main() 41 assert(fd2 >= 0); in main() 47 rv = fstat(fd2, &st2); in main()
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | reuseport_bpf.c | 311 int fd1, fd2, opt; in test_extra_filter() local 317 fd2 = socket(p.recv_family, p.protocol, 0); in test_extra_filter() 318 if (fd2 < 0) in test_extra_filter() 324 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_extra_filter() 328 attach_ebpf(fd2, 10); in test_extra_filter() 333 if (!bind(fd2, addr, sockaddr_size()) && errno != EADDRINUSE) in test_extra_filter() 392 int fd1, fd2, opt = 1; in test_filter_without_bind() local 398 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind() 399 if (fd2 < 0) in test_filter_without_bind() 403 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_filter_without_bind() [all …]
|
D | reuseaddr_conflict.c | 89 int fd1, fd2; in main() local 104 fd2 = open_port(0, 1); in main() 105 if (fd2 >= 0) in main()
|
/Linux-v4.19/tools/testing/selftests/sync/ |
D | sync.c | 68 int sync_merge(const char *name, int fd1, int fd2) in sync_merge() argument 73 data.fd2 = fd2; in sync_merge()
|
D | sync.h | 36 int sync_merge(const char *name, int fd1, int fd2);
|
/Linux-v4.19/include/uapi/linux/ |
D | sync_file.h | 28 __s32 fd2; member
|
/Linux-v4.19/include/linux/ |
D | audit.h | 347 extern void __audit_fd_pair(int fd1, int fd2); 365 static inline void audit_fd_pair(int fd1, int fd2) in audit_fd_pair() argument 368 __audit_fd_pair(fd1, fd2); in audit_fd_pair() 551 static inline void audit_fd_pair(int fd1, int fd2) in audit_fd_pair() argument
|
/Linux-v4.19/Documentation/powerpc/ |
D | cxlflash.txt | 153 referred to as fd2) that is used by the block library to initiate 162 and fd2) that are provided back to the user: 174 - A valid adapter file descriptor (fd2 >= 0) is only returned on 186 - When this ioctl returns with a valid fd2 and the return flag 188 close fd2 in the following circumstances: 191 + Following a successful recovery on the context's original fd2 193 on the fd2 associated with the source context 195 - At any time, a close on fd2 will invalidate the tokens. Applications 196 should exercise caution to only close fd2 when appropriate (outlined 288 attach, the application _must_ close the fd2 associated with the context [all …]
|
/Linux-v4.19/net/ |
D | socket.c | 1366 int fd1, fd2, err; in __sys_socketpair() local 1386 fd2 = get_unused_fd_flags(flags); in __sys_socketpair() 1387 if (unlikely(fd2 < 0)) { in __sys_socketpair() 1389 return fd2; in __sys_socketpair() 1396 err = put_user(fd2, &usockvec[1]); in __sys_socketpair() 1443 audit_fd_pair(fd1, fd2); in __sys_socketpair() 1446 fd_install(fd2, newfile2); in __sys_socketpair() 1450 put_unused_fd(fd2); in __sys_socketpair()
|
/Linux-v4.19/drivers/dma-buf/ |
D | sync_file.c | 352 fence2 = sync_file_fdget(data.fd2); in sync_file_ioctl_merge()
|
/Linux-v4.19/kernel/ |
D | auditsc.c | 2236 void __audit_fd_pair(int fd1, int fd2) in __audit_fd_pair() argument 2240 context->fds[1] = fd2; in __audit_fd_pair()
|
/Linux-v4.19/arch/m68k/ifpsp060/ |
D | ftest.sa | 32 dc.l $42aefea0,$487b0170,$00000fd2,$61ff0000
|
/Linux-v4.19/Documentation/admin-guide/ |
D | devices.txt | 52 2 = /dev/fd2 Controller 0, drive 2, autodetect
|