Home
last modified time | relevance | path

Searched refs:SOCK_NONBLOCK (Results 1 – 16 of 16) sorted by relevance

/linux/tools/perf/trace/beauty/
H A Dsocket_type.c13 #ifndef SOCK_NONBLOCK
14 # define SOCK_NONBLOCK 00004000 macro
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_listen.c381 s = socket_loopback(family, sotype | SOCK_NONBLOCK); in test_accept_after_delete()
436 s = socket_loopback(family, sotype | SOCK_NONBLOCK); in test_accept_before_delete()
548 s = socket_loopback(family, sotype | SOCK_NONBLOCK); in test_syn_recv_insert_delete()
688 err = create_socket_pairs(family, sotype | SOCK_NONBLOCK, &c0, &c1, in redir_to_connected()
797 s = socket_loopback(family, sotype | SOCK_NONBLOCK); in redir_to_listening()
917 err = create_socket_pairs(family, sotype | SOCK_NONBLOCK, &c0, &c1, in redir_partial()
984 s = socket_loopback_reuseport(family, sotype | SOCK_NONBLOCK, in test_reuseport_select_listening()
1438 if (socketpair(AF_UNIX, sotype | SOCK_NONBLOCK, 0, sfd)) in unix_redir_to_connected()
1442 if (socketpair(AF_UNIX, sotype | SOCK_NONBLOCK, 0, sfd)) in unix_redir_to_connected()
1493 return create_pair(AF_VSOCK, sotype | SOCK_NONBLOCK, v0, v1); in vsock_socketpair_connectible()
[all …]
H A Dsockmap_basic.c525 n = recv(c1, &b, 1, SOCK_NONBLOCK); in test_sockmap_skb_verdict_shutdown()
574 recvd = recv_timeout(p, rcv, sizeof(rcv), SOCK_NONBLOCK, in test_sockmap_stream_pass()
631 recvd = recv_timeout(c1, &buf, sizeof(buf), SOCK_NONBLOCK, IO_TIMEOUT_SEC); in test_sockmap_skb_verdict_fionread()
836 udp = xsocket(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK, 0); in test_sockmap_many_socket()
905 udp = xsocket(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK, 0); in test_sockmap_many_maps()
976 udp = xsocket(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK, 0); in test_sockmap_same_sock()
/linux/arch/parisc/include/asm/
H A Dsocket.h10 #define SOCK_NONBLOCK 0x40000000 macro
/linux/arch/alpha/include/asm/
H A Dsocket.h10 #define SOCK_NONBLOCK 0x40000000 macro
/linux/arch/mips/include/asm/
H A Dsocket.h46 #define SOCK_NONBLOCK O_NONBLOCK macro
/linux/samples/bpf/
H A Dsock_example.h18 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
/linux/net/
H A Dsocket.c1647 BUILD_BUG_ON(SOCK_NONBLOCK & SOCK_TYPE_MASK); in __sys_socket_create()
1649 if ((type & ~SOCK_TYPE_MASK) & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in __sys_socket_create()
1670 if (SOCK_NONBLOCK != O_NONBLOCK && (flags & SOCK_NONBLOCK)) in __sys_socket_file()
1671 flags = (flags & ~SOCK_NONBLOCK) | O_NONBLOCK; in __sys_socket_file()
1706 if (SOCK_NONBLOCK != O_NONBLOCK && (flags & SOCK_NONBLOCK)) in __sys_socket()
1707 flags = (flags & ~SOCK_NONBLOCK) | O_NONBLOCK; in __sys_socket()
1729 if (flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in __sys_socketpair()
1733 if (SOCK_NONBLOCK != O_NONBLOCK && (flags & SOCK_NONBLOCK)) in __sys_socketpair()
1734 flags = (flags & ~SOCK_NONBLOCK) | O_NONBLOCK; in __sys_socketpair()
1971 if (flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in __sys_accept4_file()
[all …]
/linux/include/linux/
H A Dnet.h81 #ifndef SOCK_NONBLOCK
82 #define SOCK_NONBLOCK O_NONBLOCK macro
/linux/tools/testing/selftests/net/
H A Dso_incoming_cpu.c130 fd = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0); in create_server()
/linux/io_uring/
H A Dnet.c1545 if (accept->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in io_accept_prep()
1547 if (SOCK_NONBLOCK != O_NONBLOCK && (accept->flags & SOCK_NONBLOCK)) in io_accept_prep()
1548 accept->flags = (accept->flags & ~SOCK_NONBLOCK) | O_NONBLOCK; in io_accept_prep()
1647 if (sock->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in io_socket_prep()
/linux/fs/smb/server/
H A Dtransport_tcp.c238 SOCK_NONBLOCK); in ksmbd_kthread_fn()
/linux/tools/testing/selftests/net/af_unix/
H A Dmsg_oob.c52 ret = socketpair(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0, self->fd); in create_unix_socketpair()
/linux/drivers/xen/
H A Dpvcalls-front.c791 nonblock = flags & SOCK_NONBLOCK; in pvcalls_front_accept()
/linux/net/smc/
H A Daf_smc.c1727 rc = kernel_accept(lsmc->clcsock, &new_clcsock, SOCK_NONBLOCK); in smc_clcsock_accept()
/linux/net/sctp/
H A Dsocket.c5709 if (flags & SOCK_NONBLOCK) in sctp_getsockopt_peeloff_common()