Home
last modified time | relevance | path

Searched refs:fd1 (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.3-rc2/tools/testing/selftests/powerpc/ptrace/
A Dperf-hwbreak.c418 close(fd1); in test_process_multi_diff_addr()
436 close(fd1); in test_process_multi_diff_addr()
463 close(fd1); in test_process_multi_same_addr()
481 close(fd1); in test_process_multi_same_addr()
508 close(fd1); in test_process_multi_diff_addr_ro_wo()
526 close(fd1); in test_process_multi_diff_addr_ro_wo()
571 close(fd1); in test_process_multi_same_addr_ro_wo()
615 free(fd1); in test_syswide_multi_diff_addr()
659 free(fd1); in test_syswide_multi_same_addr()
703 free(fd1); in test_syswide_multi_diff_addr_ro_wo()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dudp_limit.c11 int fd1 = -1, fd2 = -1; in test_udp_limit() local
32 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit()
33 if (!ASSERT_GE(fd1, 0, "socket(fd1)")) in test_udp_limit()
41 close(fd1); in test_udp_limit()
42 fd1 = -1; in test_udp_limit()
44 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit()
45 if (!ASSERT_GE(fd1, 0, "socket(fd1-again)")) in test_udp_limit()
63 if (fd1 >= 0) in test_udp_limit()
64 close(fd1); in test_udp_limit()
A Dxdp_attach.c13 int err, fd1, fd2, fd3; in serial_test_xdp_attach() local
18 err = bpf_prog_test_load(file, BPF_PROG_TYPE_XDP, &obj1, &fd1); in serial_test_xdp_attach()
21 err = bpf_prog_get_info_by_fd(fd1, &info, &len); in serial_test_xdp_attach()
40 err = bpf_xdp_attach(IFINDEX_LO, fd1, XDP_FLAGS_REPLACE, &opts); in serial_test_xdp_attach()
53 opts.old_prog_fd = fd1; in serial_test_xdp_attach()
A Dsockmap_listen.c968 static int add_to_sockmap(int sock_mapfd, int fd1, int fd2) in add_to_sockmap() argument
975 value = fd1; in add_to_sockmap()
/linux-6.3-rc2/tools/testing/selftests/net/
A Dsk_connect_zero_addr.c10 int fd1, fd2, one = 1; in main() local
21 fd1 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in main()
22 if (fd1 < 0) { in main()
27 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) { in main()
32 if (bind(fd1, (struct sockaddr *)&bind_addr, sizeof(bind_addr))) { in main()
37 if (listen(fd1, 0)) { in main()
54 close(fd1); in main()
60 close(fd1); in main()
A Dsk_bind_sendto_listen.c10 int fd1, fd2, one = 1; in main() local
21 fd1 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in main()
22 if (fd1 < 0) { in main()
27 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) { in main()
32 if (bind(fd1, (struct sockaddr *)&bind_addr, sizeof(bind_addr))) { in main()
37 if (sendto(fd1, NULL, 0, MSG_FASTOPEN, (struct sockaddr *)&bind_addr, in main()
71 close(fd1); in main()
78 close(fd1); in main()
A Dreuseaddr_conflict.c89 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()
A Dreuseport_bpf.c309 int fd1, fd2, opt; in test_extra_filter() local
312 fd1 = socket(p.recv_family, p.protocol, 0); in test_extra_filter()
313 if (fd1 < 0) in test_extra_filter()
320 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_extra_filter()
325 attach_ebpf(fd1, 10); in test_extra_filter()
328 if (bind(fd1, addr, sockaddr_size())) in test_extra_filter()
390 int fd1, fd2, opt = 1; in test_filter_without_bind() local
393 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind()
394 if (fd1 < 0) in test_filter_without_bind()
404 attach_ebpf(fd1, 10); in test_filter_without_bind()
[all …]
/linux-6.3-rc2/tools/testing/selftests/kcmp/
A Dkcmp_test.c23 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()
105 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main()
117 ret = sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd1); in main()
/linux-6.3-rc2/tools/testing/selftests/core/
A Dclose_range_test.c397 EXPECT_GT(fd1, 0); in TEST()
399 fd2 = dup2(fd1, 1000); in TEST()
423 fd3 = dup2(fd1, 42); in TEST()
453 fd3 = dup2(fd1, 42); in TEST()
460 EXPECT_EQ(close(fd1), 0); in TEST()
489 EXPECT_GT(fd1, 0); in TEST()
491 fd2 = dup2(fd1, 1000); in TEST()
518 fd3 = dup2(fd1, 42); in TEST()
529 EXPECT_EQ(close(fd1), 0); in TEST()
554 fd3 = dup2(fd1, 42); in TEST()
[all …]
/linux-6.3-rc2/tools/perf/tests/
A Dbp_signal.c32 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()
241 fd1 = bp_event(__test_function, SIGIO); in test__bp_signal()
245 ioctl(fd1, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal()
255 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in test__bp_signal()
259 count1 = bp_count(fd1); in test__bp_signal()
263 close(fd1); in test__bp_signal()
/linux-6.3-rc2/tools/testing/selftests/proc/
A Dfd-002-posix-eq.c27 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()
A Dproc-pid-vm.c160 int fd, fd1; in make_exe() local
207 fd1 = open(buf, O_RDONLY|O_CLOEXEC); in make_exe()
210 return fd1; in make_exe()
/linux-6.3-rc2/tools/testing/selftests/sync/
A Dsync.c68 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()
A Dsync.h36 int sync_merge(const char *name, int fd1, int fd2);
/linux-6.3-rc2/scripts/kconfig/
A Dconfdata.c45 int fd1, fd2; in is_same() local
50 fd1 = open(file1, O_RDONLY); in is_same()
51 if (fd1 < 0) in is_same()
58 ret = fstat(fd1, &st1); in is_same()
68 map1 = mmap(NULL, st1.st_size, PROT_READ, MAP_PRIVATE, fd1, 0); in is_same()
83 close(fd1); in is_same()
/linux-6.3-rc2/include/linux/
A Daudit.h408 extern void __audit_fd_pair(int fd1, int fd2);
431 static inline void audit_fd_pair(int fd1, int fd2) in audit_fd_pair() argument
434 __audit_fd_pair(fd1, fd2); in audit_fd_pair()
647 static inline void audit_fd_pair(int fd1, int fd2) in audit_fd_pair() argument
/linux-6.3-rc2/tools/testing/selftests/mm/
A Dhmm-tests.c88 int fd1; in FIXTURE() local
149 self->fd1 = hmm_open(variant->device_number1); in FIXTURE_SETUP()
150 ASSERT_GE(self->fd1, 0); in FIXTURE_SETUP()
168 ret = close(self->fd1); in FIXTURE_TEARDOWN()
170 self->fd1 = -1; in FIXTURE_TEARDOWN()
1174 ret = hmm_migrate_sys_to_dev(self->fd1, buffer, npages); in TEST_F()
1182 ret = hmm_migrate_sys_to_dev(self->fd1, buffer, 3); in TEST_F()
1214 ret = hmm_migrate_sys_to_dev(self->fd1, buffer, 4); in TEST_F()
1528 ret = hmm_migrate_sys_to_dev(self->fd1, buffer, 1); in TEST_F()
1684 ret = hmm_dmirror_cmd(self->fd1, HMM_DMIRROR_READ, buffer, npages); in TEST_F()
[all …]
/linux-6.3-rc2/drivers/net/wireless/ath/carl9170/
A Dphy.c970 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()
/linux-6.3-rc2/net/
A Dsocket.c1684 int fd1, fd2, err; in __sys_socketpair() local
1700 fd1 = get_unused_fd_flags(flags); in __sys_socketpair()
1701 if (unlikely(fd1 < 0)) in __sys_socketpair()
1702 return fd1; in __sys_socketpair()
1706 put_unused_fd(fd1); in __sys_socketpair()
1710 err = put_user(fd1, &usockvec[0]); in __sys_socketpair()
1761 audit_fd_pair(fd1, fd2); in __sys_socketpair()
1763 fd_install(fd1, newfile1); in __sys_socketpair()
1769 put_unused_fd(fd1); in __sys_socketpair()
/linux-6.3-rc2/drivers/net/
A Dgtp.c1266 u32 fd1 = nla_get_u32(data[IFLA_GTP_FD1]); in gtp_encap_enable() local
1268 sk1u = gtp_encap_enable_socket(fd1, UDP_ENCAP_GTP1U, gtp); in gtp_encap_enable()
/linux-6.3-rc2/tools/testing/selftests/seccomp/
A Dseccomp_bpf.c302 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() argument
306 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp()
314 #define filecmp(pid1, pid2, fd1, fd2) ({ \ argument
317 _ret = __filecmp(pid1, pid2, fd1, fd2); \
/linux-6.3-rc2/kernel/
A Dauditsc.c2686 void __audit_fd_pair(int fd1, int fd2) in __audit_fd_pair() argument
2690 context->fds[0] = fd1; in __audit_fd_pair()
/linux-6.3-rc2/Documentation/powerpc/
A Dcxlflash.rst144 (herein referred to as fd1) that should be used for issuing the
/linux-6.3-rc2/Documentation/m68k/
A Dkernel-options.rst96 /dev/fd0 stands for the first drive, /dev/fd1 for the second, and so

Completed in 75 milliseconds

12