Home
last modified time | relevance | path

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

/Linux-v4.19/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-v4.19/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-v4.19/tools/perf/tests/
Dbp_signal.c31 static int fd1; variable
79 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2()
100 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in sig_handler()
240 fd1 = bp_event(__test_function, SIGIO); in test__bp_signal()
244 ioctl(fd1, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal()
254 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in test__bp_signal()
258 count1 = bp_count(fd1); in test__bp_signal()
262 close(fd1); in test__bp_signal()
/Linux-v4.19/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()
/Linux-v4.19/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-v4.19/include/linux/
Daudit.h347 extern void __audit_fd_pair(int fd1, int fd2);
365 static inline void audit_fd_pair(int fd1, int fd2) in audit_fd_pair() argument
368 __audit_fd_pair(fd1, fd2); in audit_fd_pair()
551 static inline void audit_fd_pair(int fd1, int fd2) in audit_fd_pair() argument
/Linux-v4.19/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-v4.19/net/
Dsocket.c1366 int fd1, fd2, err; in __sys_socketpair() local
1382 fd1 = get_unused_fd_flags(flags); in __sys_socketpair()
1383 if (unlikely(fd1 < 0)) in __sys_socketpair()
1384 return fd1; in __sys_socketpair()
1388 put_unused_fd(fd1); in __sys_socketpair()
1392 err = put_user(fd1, &usockvec[0]); in __sys_socketpair()
1443 audit_fd_pair(fd1, fd2); in __sys_socketpair()
1445 fd_install(fd1, newfile1); in __sys_socketpair()
1451 put_unused_fd(fd1); in __sys_socketpair()
/Linux-v4.19/drivers/net/
Dgtp.c838 u32 fd1 = nla_get_u32(data[IFLA_GTP_FD1]); in gtp_encap_enable() local
840 sk1u = gtp_encap_enable_socket(fd1, UDP_ENCAP_GTP1U, gtp); in gtp_encap_enable()
/Linux-v4.19/kernel/
Dauditsc.c2236 void __audit_fd_pair(int fd1, int fd2) in __audit_fd_pair() argument
2239 context->fds[0] = fd1; in __audit_fd_pair()
/Linux-v4.19/Documentation/powerpc/
Dcxlflash.txt140 (herein referred to as fd1) that should be used for issuing the
/Linux-v4.19/Documentation/m68k/
Dkernel-options.txt94 /dev/fd0 stands for the first drive, /dev/fd1 for the second, and so
/Linux-v4.19/Documentation/admin-guide/
Ddevices.txt51 1 = /dev/fd1 Controller 0, drive 1, autodetect