Home
last modified time | relevance | path

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

/Linux-v5.4/tools/testing/selftests/net/
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()
Dreuseport_bpf.c311 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 …]
/Linux-v5.4/tools/testing/selftests/kcmp/
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()
102 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main()
114 ret = sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd1); in main()
/Linux-v5.4/tools/perf/tests/
Dbp_signal.c32 static int fd1; variable
80 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2()
101 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-v5.4/tools/testing/selftests/proc/
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()
Dproc-pid-vm.c158 int fd, fd1; in make_exe() local
205 fd1 = open(buf, O_RDONLY|O_CLOEXEC); in make_exe()
208 return fd1; in make_exe()
/Linux-v5.4/tools/testing/selftests/sync/
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()
Dsync.h36 int sync_merge(const char *name, int fd1, int fd2);
/Linux-v5.4/include/linux/
Daudit.h367 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/
Dconfdata.c43 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()
/Linux-v5.4/arch/nds32/include/asm/
Dnds32_fpu_inst.h49 enum fd1 { enum
/Linux-v5.4/drivers/net/wireless/ath/carl9170/
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-v5.4/net/
Dsocket.c1530 int fd1, fd2, err; in __sys_socketpair() local
1546 fd1 = get_unused_fd_flags(flags); in __sys_socketpair()
1547 if (unlikely(fd1 < 0)) in __sys_socketpair()
1548 return fd1; in __sys_socketpair()
1552 put_unused_fd(fd1); in __sys_socketpair()
1556 err = put_user(fd1, &usockvec[0]); in __sys_socketpair()
1607 audit_fd_pair(fd1, fd2); in __sys_socketpair()
1609 fd_install(fd1, newfile1); in __sys_socketpair()
1615 put_unused_fd(fd1); in __sys_socketpair()
/Linux-v5.4/drivers/net/
Dgtp.c848 u32 fd1 = nla_get_u32(data[IFLA_GTP_FD1]); in gtp_encap_enable() local
850 sk1u = gtp_encap_enable_socket(fd1, UDP_ENCAP_GTP1U, gtp); in gtp_encap_enable()
/Linux-v5.4/kernel/
Dauditsc.c2337 void __audit_fd_pair(int fd1, int fd2) in __audit_fd_pair() argument
2340 context->fds[0] = fd1; in __audit_fd_pair()
/Linux-v5.4/Documentation/powerpc/
Dcxlflash.rst144 (herein referred to as fd1) that should be used for issuing the
/Linux-v5.4/Documentation/m68k/
Dkernel-options.rst96 /dev/fd0 stands for the first drive, /dev/fd1 for the second, and so
/Linux-v5.4/Documentation/admin-guide/
Ddevices.txt51 1 = /dev/fd1 Controller 0, drive 1, autodetect