/Linux-v5.4/tools/testing/selftests/memfd/ |
D | memfd_test.c | 439 int r, fd2; in mfd_assert_shrink() local 449 fd2 = mfd_assert_open(fd, in mfd_assert_shrink() 452 close(fd2); in mfd_assert_shrink() 736 int fd, fd2; in test_seal_future_write() local 757 fd2 = mfd_assert_reopen_fd(fd); in test_seal_future_write() 759 mfd_assert_read(fd2); in test_seal_future_write() 760 mfd_assert_read_shared(fd2); in test_seal_future_write() 761 mfd_fail_write(fd2); in test_seal_future_write() 764 close(fd2); in test_seal_future_write() 852 int fd, fd2; in test_share_dup() local [all …]
|
/Linux-v5.4/tools/perf/tests/ |
D | bp_signal.c | 33 static int fd2; variable 81 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2() 102 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler() 242 fd2 = bp_event(sig_handler, SIGUSR1); in test__bp_signal() 246 ioctl(fd2, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal() 256 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in test__bp_signal() 260 count2 = bp_count(fd2); in test__bp_signal() 264 close(fd2); in test__bp_signal()
|
/Linux-v5.4/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-v5.4/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-v5.4/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-v5.4/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-v5.4/include/uapi/linux/ |
D | sync_file.h | 28 __s32 fd2; member
|
/Linux-v5.4/Documentation/powerpc/ |
D | cxlflash.rst | 157 referred to as fd2) that is used by the block library to initiate 166 and fd2) that are provided back to the user: 178 - A valid adapter file descriptor (fd2 >= 0) is only returned on 190 - When this ioctl returns with a valid fd2 and the return flag 192 close fd2 in the following circumstances: 195 + Following a successful recovery on the context's original fd2 197 on the fd2 associated with the source context 199 - At any time, a close on fd2 will invalidate the tokens. Applications 200 should exercise caution to only close fd2 when appropriate (outlined 292 attach, the application _must_ close the fd2 associated with the context [all …]
|
/Linux-v5.4/include/linux/ |
D | audit.h | 367 extern void __audit_fd_pair(int fd1, int fd2); 387 static inline void audit_fd_pair(int fd1, int fd2) in audit_fd_pair() argument 390 __audit_fd_pair(fd1, fd2); in audit_fd_pair() 593 static inline void audit_fd_pair(int fd1, int fd2) in audit_fd_pair() argument
|
/Linux-v5.4/scripts/kconfig/ |
D | confdata.c | 43 int fd1, fd2; in is_same() local 52 fd2 = open(file2, O_RDONLY); in is_same() 53 if (fd2 < 0) in is_same() 59 ret = fstat(fd2, &st2); in is_same() 70 map2 = mmap(NULL, st2.st_size, PROT_READ, MAP_PRIVATE, fd2, 0); in is_same() 79 close(fd2); in is_same()
|
/Linux-v5.4/arch/nds32/include/asm/ |
D | nds32_fpu_inst.h | 69 enum fd2 { enum
|
/Linux-v5.4/net/ |
D | socket.c | 1530 int fd1, fd2, err; in __sys_socketpair() local 1550 fd2 = get_unused_fd_flags(flags); in __sys_socketpair() 1551 if (unlikely(fd2 < 0)) { in __sys_socketpair() 1553 return fd2; in __sys_socketpair() 1560 err = put_user(fd2, &usockvec[1]); in __sys_socketpair() 1607 audit_fd_pair(fd1, fd2); in __sys_socketpair() 1610 fd_install(fd2, newfile2); in __sys_socketpair() 1614 put_unused_fd(fd2); in __sys_socketpair()
|
/Linux-v5.4/drivers/dma-buf/ |
D | sync_file.c | 344 fence2 = sync_file_fdget(data.fd2); in sync_file_ioctl_merge()
|
/Linux-v5.4/arch/m68k/ifpsp060/ |
D | ftest.sa | 32 dc.l $42aefea0,$487b0170,$00000fd2,$61ff0000
|
/Linux-v5.4/kernel/ |
D | auditsc.c | 2337 void __audit_fd_pair(int fd1, int fd2) in __audit_fd_pair() argument 2341 context->fds[1] = fd2; in __audit_fd_pair()
|
/Linux-v5.4/Documentation/admin-guide/ |
D | devices.txt | 52 2 = /dev/fd2 Controller 0, drive 2, autodetect
|