/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 35 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit() 36 if (CHECK(fd1 < 0, "fd1", "errno %d", errno)) in test_udp_limit() 44 close(fd1); in test_udp_limit() 45 fd1 = -1; in test_udp_limit() 47 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit() 48 if (CHECK(fd1 < 0, "fd1-again", "errno %d", errno)) in test_udp_limit() 68 if (fd1 >= 0) in test_udp_limit() 69 close(fd1); in test_udp_limit()
|
D | xdp_attach.c | 13 int err, fd1, fd2, fd3; in test_xdp_attach() local 19 err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj1, &fd1); in test_xdp_attach() 22 err = bpf_obj_get_info_by_fd(fd1, &info, &len); in test_xdp_attach() 41 err = bpf_set_link_xdp_fd_opts(IFINDEX_LO, fd1, XDP_FLAGS_REPLACE, in test_xdp_attach() 56 opts.old_fd = fd1; in test_xdp_attach()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | reuseaddr_conflict.c | 89 int fd1, fd2; in main() local 96 fd1 = open_port(0, 1); in main() 97 if (fd1 >= 0) in main() 100 fd1 = open_port(1, 1); in main() 101 if (fd1 < 0) in main() 107 close(fd1); in main() 109 fd1 = open_port(0, 1); in main() 110 if (fd1 >= 0) in main()
|
D | reuseport_bpf.c | 311 int fd1, fd2, opt; in test_extra_filter() local 314 fd1 = socket(p.recv_family, p.protocol, 0); in test_extra_filter() 315 if (fd1 < 0) in test_extra_filter() 322 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_extra_filter() 327 attach_ebpf(fd1, 10); in test_extra_filter() 330 if (bind(fd1, addr, sockaddr_size())) in test_extra_filter() 392 int fd1, fd2, opt = 1; in test_filter_without_bind() local 395 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind() 396 if (fd1 < 0) in test_filter_without_bind() 401 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_filter_without_bind() [all …]
|
/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 42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main() 45 if (fd1 < 0) { in main() 102 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main() 114 ret = sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd1); in main()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
D | bp_signal.c | 32 static int fd1; variable 75 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2() 96 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in sig_handler() 236 fd1 = bp_event(__test_function, SIGIO); in test__bp_signal() 240 ioctl(fd1, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal() 250 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in test__bp_signal() 254 count1 = bp_count(fd1); in test__bp_signal() 258 close(fd1); in test__bp_signal()
|
/kernel/linux/linux-5.10/tools/testing/selftests/proc/ |
D | fd-002-posix-eq.c | 27 int fd0, fd1, fd2; in main() local 36 fd1 = open(buf, O_RDONLY); in main() 37 assert(fd1 >= 0); in main() 45 rv = fstat(fd1, &st1); in main()
|
D | proc-pid-vm.c | 158 int fd, fd1; in make_exe() local 205 fd1 = open(buf, O_RDONLY|O_CLOEXEC); in make_exe() 208 return fd1; in make_exe()
|
/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 77 err = ioctl(fd1, SYNC_IOC_MERGE, &data); in sync_merge()
|
D | sync.h | 36 int sync_merge(const char *name, int fd1, int fd2);
|
/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/tools/testing/selftests/vm/ |
D | hmm-tests.c | 62 int fd1; in FIXTURE() local 96 self->fd1 = hmm_open(1); in FIXTURE_SETUP() 97 ASSERT_GE(self->fd1, 0); in FIXTURE_SETUP() 115 ret = close(self->fd1); in FIXTURE_TEARDOWN() 117 self->fd1 = -1; in FIXTURE_TEARDOWN() 1012 ret = hmm_dmirror_cmd(self->fd1, HMM_DMIRROR_MIGRATE, buffer, npages); in TEST_F() 1020 ret = hmm_dmirror_cmd(self->fd1, HMM_DMIRROR_MIGRATE, buffer, 3); in TEST_F() 1052 ret = hmm_dmirror_cmd(self->fd1, HMM_DMIRROR_MIGRATE, buffer, 4); in TEST_F() 1357 ret = hmm_dmirror_cmd(self->fd1, HMM_DMIRROR_MIGRATE, buffer, 1); in TEST_F() 1506 ret = hmm_dmirror_cmd(self->fd1, HMM_DMIRROR_READ, buffer, npages); in TEST_F()
|
/kernel/linux/linux-5.10/scripts/kconfig/ |
D | confdata.c | 43 int fd1, fd2; in is_same() local 48 fd1 = open(file1, O_RDONLY); in is_same() 49 if (fd1 < 0) in is_same() 56 ret = fstat(fd1, &st1); in is_same() 66 map1 = mmap(NULL, st1.st_size, PROT_READ, MAP_PRIVATE, fd1, 0); in is_same() 81 close(fd1); in is_same()
|
/kernel/linux/linux-5.10/arch/nds32/include/asm/ |
D | nds32_fpu_inst.h | 49 enum fd1 { enum
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/carl9170/ |
D | phy.c | 970 u32 d0, d1, td0, td1, fd0, fd1; in carl9170_init_rf_bank4_pwr() local 1019 fd1 = td1 << 5 | td0; in carl9170_init_rf_bank4_pwr() 1024 carl9170_regwrite(0x1c58e8, fd1); in carl9170_init_rf_bank4_pwr()
|
/kernel/linux/linux-5.10/net/ |
D | socket.c | 1528 int fd1, fd2, err; in __sys_socketpair() local 1544 fd1 = get_unused_fd_flags(flags); in __sys_socketpair() 1545 if (unlikely(fd1 < 0)) in __sys_socketpair() 1546 return fd1; in __sys_socketpair() 1550 put_unused_fd(fd1); in __sys_socketpair() 1554 err = put_user(fd1, &usockvec[0]); in __sys_socketpair() 1605 audit_fd_pair(fd1, fd2); in __sys_socketpair() 1607 fd_install(fd1, newfile1); in __sys_socketpair() 1613 put_unused_fd(fd1); in __sys_socketpair()
|
/kernel/liteos_a/syscall/ |
D | los_syscall.h | 258 extern int SysDup2(int fd1, int fd2);
|
D | fs_syscall.c | 943 int SysDup2(int fd1, int fd2) in SysDup2() argument 946 int sysfd1 = GetAssociatedSystemFd(fd1); in SysDup2() 955 if (fd1 == fd2) { in SysDup2()
|
/kernel/linux/linux-5.10/drivers/net/ |
D | gtp.c | 846 u32 fd1 = nla_get_u32(data[IFLA_GTP_FD1]); in gtp_encap_enable() local 848 sk1u = gtp_encap_enable_socket(fd1, UDP_ENCAP_GTP1U, gtp); in gtp_encap_enable()
|
/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/kernel/ |
D | auditsc.c | 2379 void __audit_fd_pair(int fd1, int fd2) in __audit_fd_pair() argument 2382 context->fds[0] = fd1; in __audit_fd_pair()
|
/kernel/linux/linux-5.10/Documentation/powerpc/ |
D | cxlflash.rst | 144 (herein referred to as fd1) that should be used for issuing the
|
/kernel/linux/linux-5.10/Documentation/m68k/ |
D | kernel-options.rst | 96 /dev/fd0 stands for the first drive, /dev/fd1 for the second, and so
|
/kernel/linux/linux-5.10/Documentation/admin-guide/ |
D | devices.txt | 51 1 = /dev/fd1 Controller 0, drive 1, autodetect
|