| /kernel/linux/linux-5.10/tools/testing/selftests/memfd/ |
| D | memfd_test.c | 474 int r, fd2; in mfd_assert_shrink() local 484 fd2 = mfd_assert_open(fd, in mfd_assert_shrink() 487 close(fd2); in mfd_assert_shrink() 771 int fd, fd2; in test_seal_future_write() local 792 fd2 = mfd_assert_reopen_fd(fd); in test_seal_future_write() 794 mfd_assert_read(fd2); in test_seal_future_write() 795 mfd_assert_read_shared(fd2); in test_seal_future_write() 796 mfd_fail_write(fd2); in test_seal_future_write() 801 close(fd2); in test_seal_future_write() 889 int fd, fd2; in test_share_dup() local [all …]
|
| /kernel/linux/linux-5.10/tools/perf/tests/ |
| D | bp_signal.c | 33 static int fd2; variable 76 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2() 97 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler() 237 fd2 = bp_event(sig_handler, SIGUSR1); in test__bp_signal() 241 ioctl(fd2, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal() 251 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in test__bp_signal() 255 count2 = bp_count(fd2); in test__bp_signal() 259 close(fd2); in test__bp_signal()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
| D | udp_limit.c | 13 int fd1 = -1, fd2 = -1; in test_udp_limit() local 39 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit() 40 if (CHECK(fd2 >= 0, "fd2", "errno %d", errno)) in test_udp_limit() 70 if (fd2 >= 0) in test_udp_limit() 71 close(fd2); in test_udp_limit()
|
| D | xdp_attach.c | 13 int err, fd1, fd2, fd3; in test_xdp_attach() local 27 err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj2, &fd2); in test_xdp_attach() 32 err = bpf_obj_get_info_by_fd(fd2, &info, &len); in test_xdp_attach() 51 err = bpf_set_link_xdp_fd_opts(IFINDEX_LO, fd2, XDP_FLAGS_REPLACE, in test_xdp_attach() 57 err = bpf_set_link_xdp_fd_opts(IFINDEX_LO, fd2, 0, &opts); in test_xdp_attach() 73 opts.old_fd = fd2; in test_xdp_attach()
|
| /kernel/linux/linux-5.10/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()
|
| /kernel/linux/linux-5.10/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()
|
| /kernel/linux/linux-5.10/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()
|
| /kernel/liteos_m/testsuites/unittest/posix/src/fs/full/ |
| D | posix_fs_full_test.c | 52 int32_t fd2 = -1; variable 59 fd2 = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 60 ICUNIT_ASSERT_EQUAL(fd2, POSIX_FS_IS_ERROR, fd2); 66 fd2 = open(tmpFileName, O_CREAT | O_RDWR, TEST_MODE_HIGH); 67 ICUNIT_ASSERT_NOT_EQUAL(fd2, POSIX_FS_IS_ERROR, fd2); 69 ret = close(fd2);
|
| /kernel/linux/linux-5.10/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);
|
| /kernel/liteos_m/testsuites/unittest/posix/src/fs/ |
| D | posix_fs_func_test.c | 1744 int32_t fd2 = open(tmpFileName, O_RDONLY, TEST_MODE_NORMAL); variable 1745 ICUNIT_ASSERT_NOT_EQUAL(fd2, POSIX_FS_IS_ERROR, fd2); 1752 ret = close(fd2); 1782 int32_t fd2 = open(tmpFileName, O_RDWR, TEST_MODE_NORMAL); variable 1783 ICUNIT_ASSERT_EQUAL(fd2, POSIX_FS_IS_ERROR, fd2); 1814 int32_t fd2 = open(tmpFileName, O_RDONLY, TEST_MODE_NORMAL); variable 1815 ICUNIT_ASSERT_NOT_EQUAL(fd2, POSIX_FS_IS_ERROR, fd2); 1820 ret = close(fd2); 1826 fd2 = open(tmpFileName, O_RDWR, TEST_MODE_NORMAL); 1827 ICUNIT_ASSERT_EQUAL(fd2, POSIX_FS_IS_ERROR, fd2);
|
| /kernel/linux/linux-5.10/include/uapi/linux/ |
| D | sync_file.h | 28 __s32 fd2; member
|
| /kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
| D | sync_file.h | 25 __s32 fd2; member
|
| /kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
| D | sync_file.h | 12 __s32 fd2; member
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | audit.h | 397 extern void __audit_fd_pair(int fd1, int fd2); 419 static inline void audit_fd_pair(int fd1, int fd2) in audit_fd_pair() argument 422 __audit_fd_pair(fd1, fd2); in audit_fd_pair() 627 static inline void audit_fd_pair(int fd1, int fd2) in audit_fd_pair() argument
|
| /kernel/linux/linux-5.10/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()
|
| /kernel/linux/linux-5.10/arch/nds32/include/asm/ |
| D | nds32_fpu_inst.h | 69 enum fd2 { enum
|
| /kernel/liteos_a/syscall/ |
| D | fs_syscall.c | 1070 int SysDup2(int fd1, int fd2) in SysDup2() argument 1074 int sysfd2 = GetAssociatedSystemFd(fd2); in SysDup2() 1077 if ((sysfd1 < 0) || (sysfd1 >= CONFIG_NFILE_DESCRIPTORS) || (CheckProcessFd(fd2) != OK)) { in SysDup2() 1082 if (fd1 == fd2) { in SysDup2() 1083 return fd2; in SysDup2() 1086 ret = AllocSpecifiedProcessFd(fd2); in SysDup2() 1095 AssociateSystemFd(fd2, sysfd2); in SysDup2() 1101 AssociateSystemFd(fd2, sysfd1); in SysDup2() 1104 ClearCloexecFlag(fd2); in SysDup2() 1105 return fd2; in SysDup2()
|
| D | los_syscall.h | 264 extern int SysDup2(int fd1, int fd2);
|
| /kernel/linux/linux-5.10/net/ |
| D | socket.c | 1528 int fd1, fd2, err; in __sys_socketpair() local 1548 fd2 = get_unused_fd_flags(flags); in __sys_socketpair() 1549 if (unlikely(fd2 < 0)) { in __sys_socketpair() 1551 return fd2; in __sys_socketpair() 1558 err = put_user(fd2, &usockvec[1]); in __sys_socketpair() 1605 audit_fd_pair(fd1, fd2); in __sys_socketpair() 1608 fd_install(fd2, newfile2); in __sys_socketpair() 1612 put_unused_fd(fd2); in __sys_socketpair()
|
| /kernel/linux/linux-5.10/drivers/dma-buf/ |
| D | sync_file.c | 345 fence2 = sync_file_fdget(data.fd2); in sync_file_ioctl_merge()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/seccomp/ |
| D | seccomp_bpf.c | 287 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() argument 291 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp() 299 #define filecmp(pid1, pid2, fd1, fd2) ({ \ argument 302 _ret = __filecmp(pid1, pid2, fd1, fd2); \
|
| /kernel/linux/linux-5.10/arch/m68k/ifpsp060/ |
| D | ftest.sa | 32 dc.l $42aefea0,$487b0170,$00000fd2,$61ff0000
|