/linux-master/tools/testing/selftests/net/ |
H A D | reuseport_bpf_cpu.c | 4 * an SO_REUSEPORT receiver group containing one socket per CPU core. It then 5 * creates a BPF program that will select a socket from this group based 10 * that the packet was received on the socket for the corresponding core id. 29 #include <sys/socket.h> 60 rcv_fd[i] = socket(family, proto, 0); 62 error(1, errno, "failed to create receive socket"); 70 error(1, errno, "failed to bind receive socket"); 134 fd = socket(family, proto, 0); 136 error(1, errno, "failed to create send socket"); 139 error(1, errno, "failed to bind send socket"); [all...] |
H A D | reuseport_dualstack.c | 5 * the AF_INET6 socket has IPV6_V6ONLY set, it's clear which socket should 7 * packets should prefer the AF_INET socket(s). This behavior was defined with 9 * e32ea7e74727 ("soreuseport: fast reuseport UDP socket selection") 26 #include <sys/socket.h> 56 rcv_fds[i] = socket(family, proto, 0); 58 error(1, errno, "failed to create receive socket"); 66 error(1, errno, "failed to bind receive socket"); 86 fd = socket(AF_INET, proto, 0); 88 error(1, errno, "failed to create send socket"); [all...] |
H A D | reuseport_bpf_numa.c | 4 * in reuseport_bpf_cpu, only as one socket per NUMA node. 22 #include <sys/socket.h> 56 rcv_fd[i] = socket(family, proto, 0); 58 error(1, errno, "failed to create receive socket"); 66 error(1, errno, "failed to bind receive socket"); 144 fd = socket(family, proto, 0); 146 error(1, errno, "failed to create send socket"); 149 error(1, errno, "failed to bind send socket"); 152 error(1, errno, "failed to connect send socket"); 188 error(1, 0, "failed to find socket"); [all...] |
H A D | ipv6_flowlabel.c | 19 #include <sys/socket.h> 228 fdt = socket(PF_INET6, SOCK_DGRAM, prot); 230 error(1, errno, "socket t"); 232 fdr = use_ping ? fdt : socket(PF_INET6, SOCK_DGRAM, 0); 234 error(1, errno, "socket r");
|
H A D | so_incoming_cpu.c | 9 #include <sys/socket.h> 130 fd = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0); 198 fd = socket(AF_INET, SOCK_STREAM, 0);
|
/linux-master/samples/bpf/ |
H A D | cookie_uid_helper_example.c | 2 * helper function to do per socket based network traffic monitoring. 24 * directly from the ebpf map based on the socket cookie. 49 #include <sys/socket.h> 230 s_rcv = socket(PF_INET, SOCK_DGRAM, 0); 232 error(1, errno, "rcv socket creat failed!\n"); 239 s_send = socket(PF_INET, SOCK_DGRAM, 0); 241 error(1, errno, "send socket creat failed!\n"); 247 error(1, errno, "socket stat found while flow not active\n");
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_tcp_check_syncookie_user.c | 13 #include <sys/socket.h> 25 fd = socket(addr->sa_family, SOCK_STREAM, 0); 27 log_err("Failed to create server socket"); 40 log_err("Failed to bind server socket"); 45 log_err("Failed to listen on server socket"); 62 fd = socket(addr->sa_family, SOCK_STREAM, 0); 64 log_err("Failed to create client socket");
|
/linux-master/crypto/ |
H A D | algif_rng.c | 107 static int rng_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, 117 static int rng_test_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, 133 static int rng_test_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) 267 * this socket, replace proto_ops algif_rng_ops with algif_rng_test_ops.
|
/linux-master/net/handshake/ |
H A D | netlink.c | 11 #include <linux/socket.h> 95 struct socket *sock; 141 struct socket *sock; 204 * the socket is closed.
|
/linux-master/net/smc/ |
H A D | smc.h | 5 * Definitions for the SMC module (socket related) 14 #include <linux/socket.h> 41 enum smc_state { /* possible states of an SMC socket */ 249 struct socket *clcsock; /* internal tcp socket */ 261 struct work_struct tcp_listen_work;/* handle tcp socket accepts */ 262 struct work_struct smc_listen_work;/* prepare new accept socket */ 288 * socket 372 struct sock *smc_accept_dequeue(struct sock *parent, struct socket *new_sock);
|
/linux-master/net/bluetooth/ |
H A D | sco.c | 62 /* ----- SCO socket info ----- */ 155 * Must be called on the locked socket. */ 191 /* Kill socket */ 289 /* Update source addr of the socket */ 363 /* Find socket listening on source bdaddr. 414 /* Kill socket (only if zapped and orphan) 415 * Must be called on unlocked socket. 432 BT_DBG("sk %p state %d socket %p", sk, sk->sk_state, sk->sk_socket); 465 /* Must be called on unlocked socket. */ 491 static struct sock *sco_sock_alloc(struct net *net, struct socket *soc [all...] |
H A D | af_bluetooth.c | 113 static int bt_sock_create(struct net *net, struct socket *sock, int proto, 143 struct sock *bt_sock_alloc(struct net *net, struct socket *sock, 206 * socket is allocated by the kernel. 241 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock) 298 int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, 382 int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg, 503 __poll_t bt_sock_poll(struct file *file, struct socket *sock, 544 int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
|
H A D | l2cap_sock.c | 47 static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, 51 bool l2cap_is_socket(struct socket *sock) 83 static int l2cap_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) 107 /* We only allow ATT user space socket */ 181 static int l2cap_sock_connect(struct socket *sock, struct sockaddr *addr, 213 /* Check that the socket wasn't bound to something that 221 * the ATT socket using BDADDR_BREDR. We need to accept 243 /* We only allow ATT user space socket */ 272 static int l2cap_sock_listen(struct socket *sock, int backlog) 329 static int l2cap_sock_accept(struct socket *soc [all...] |
/linux-master/net/nfc/ |
H A D | rawsock.c | 58 static int rawsock_release(struct socket *sock) 76 static int rawsock_connect(struct socket *sock, struct sockaddr *_addr, 205 static int rawsock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) 241 static int rawsock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, 318 pr_err("Freeing alive NFC raw socket %p\n", sk); 323 static int rawsock_create(struct net *net, struct socket *sock,
|
/linux-master/arch/x86/include/asm/uv/ |
H A D | uv_hub.h | 38 * N - Number of bits in the node portion of a socket physical 51 * of the nasid for socket usage. 53 * GPA - (global physical address) a socket physical address converted 97 * l = socket number on board 145 * available in the L3 cache on the cpu socket for the node. 377 * Macros for converting between kernel virtual addresses, socket local physical 380 * between socket virtual and socket physical addresses. 419 /* socket phys RAM --> UV global NASID (UV4+) */ 426 /* socket virtua 513 _uv_socket_to_node(int socket, unsigned short *s2nid) argument 518 uv_socket_to_node(int socket) argument [all...] |
/linux-master/net/ipv4/ |
H A D | af_inet.c | 7 * PF_INET protocol family socket handler. 23 * Alan Cox : Keep correct socket pointer on sock 40 * Alan Cox : memzero the socket structure for 58 * David S. Miller : New socket lookup architecture. 69 #include <linux/socket.h> 127 * build a new socket. 144 pr_err("Attempt to release TCP socket in state %d %p\n", 149 pr_err("Attempt to release alive inet socket %p\n", sk); 166 * socket object. Mostly it punts to the subprotocols of IP to do 171 * Automatically bind an unbound socket [all...] |
/linux-master/net/rds/ |
H A D | connection.c | 215 * the socket is not bound to an interface. c_bound_if is used 216 * to look up a socket when a packet is received 534 static void rds_conn_message_info_cmn(struct socket *sock, unsigned int len, 600 static void rds_conn_message_info(struct socket *sock, unsigned int len, 609 static void rds6_conn_message_info(struct socket *sock, unsigned int len, 618 static void rds_conn_message_info_send(struct socket *sock, unsigned int len, 626 static void rds6_conn_message_info_send(struct socket *sock, unsigned int len, 634 static void rds_conn_message_info_retrans(struct socket *sock, 643 static void rds6_conn_message_info_retrans(struct socket *sock, 652 void rds_for_each_conn_info(struct socket *soc [all...] |
/linux-master/net/netrom/ |
H A D | af_netrom.c | 13 #include <linux/socket.h> 132 * Add a socket to the bound sockets list. 142 * Find a socket that wants to accept the Connect Request we just 163 * Find a connected NET/ROM socket given my circuit IDs. 185 * Find a connected NET/ROM socket given their circuit IDs. 273 /* Queue the unaccepted socket for death */ 293 * NET/ROM socket object. 296 static int nr_setsockopt(struct socket *sock, int level, int optname, 348 static int nr_getsockopt(struct socket *sock, int level, int optname, 398 static int nr_listen(struct socket *soc [all...] |
/linux-master/net/vmw_vsock/ |
H A D | af_vsock.c | 11 * calling socket(2)) and those created by incoming connection request packets. 15 * sockets (sockets that have established a connection with another socket). 24 * socket type in the hash table lookups. 32 * connection request is received (the second kind of socket mentioned above), 33 * we create a new socket and refer to it as a pending socket. These pending 34 * sockets are placed on the pending connection list of the listener socket. 35 * When future packets are received for the address the listener socket is 38 * pending socket. When that socket reache [all...] |
/linux-master/security/apparmor/ |
H A D | lsm.c | 1123 * apparmor_socket_post_create - setup the per-socket security struct 1124 * @sock: socket that is being setup 1125 * @family: family of socket being created 1126 * @type: type of the socket 1127 * @ptotocol: protocol of the socket 1128 * @kern: socket is a special kernel socket 1132 * - socket may not have sk here if created with sock_create_lite or 1136 static int apparmor_socket_post_create(struct socket *sock, int family, 1157 static int apparmor_socket_bind(struct socket *soc [all...] |
/linux-master/drivers/edac/ |
H A D | i7core_edac.c | 242 u8 socket; member in struct:i7core_dev 441 static struct i7core_dev *get_i7core_dev(u8 socket) argument 446 if (i7core_dev->socket == socket) 453 static struct i7core_dev *alloc_i7core_dev(u8 socket, argument 469 i7core_dev->socket = socket; 508 pvt->i7core_dev->socket, pvt->info.mc_control, 622 pvt->i7core_dev->socket, i, j); 1314 u8 socket local [all...] |
/linux-master/net/kcm/ |
H A D | kcmsock.c | 21 #include <linux/socket.h> 89 /* Report error on lower socket */ 120 * has become unblocked after being blocked on full socket buffer. Queue any 217 /* Requeue received messages for a kcm socket to other kcm sockets. This is 218 * called with a kcm socket is receive disabled. 240 /* Should mean socket buffer full */ 380 /* Should mean socket buffer full */ 430 /* Check if the socket is reserved so someone is waiting for sending. */ 579 /* Write any messages ready on the kcm socket. Called with kcm sock lock 650 * write space on the socket [all...] |
/linux-master/tools/perf/util/ |
H A D | stat-display.c | 53 [AGGR_SOCKET] = "socket,cpus,", 64 [AGGR_SOCKET] = "socket", 198 snprintf(buf, sizeof(buf), "S%d-D%d-C%d", id.socket, id.die, id.core); 202 id.socket, id.die, id.cache_lvl, id.cache); 205 snprintf(buf, sizeof(buf), "S%d-D%d-CLS%d", id.socket, id.die, id.cluster); 208 snprintf(buf, sizeof(buf), "S%d-D%d", id.socket, id.die); 211 snprintf(buf, sizeof(buf), "S%d", id.socket); 219 id.socket, id.die, id.core); 251 id.socket, id.die, id.core, sep, aggr_nr, sep); 255 id.socket, i [all...] |
/linux-master/net/qrtr/ |
H A D | af_qrtr.c | 339 /* Pass an outgoing packet socket buffer to the endpoint driver. */ 663 /* Lookup socket by port. 683 /* Release acquired socket. */ 724 /* Assign port number to socket. 775 /* Bind socket to address. 779 static int __qrtr_bind(struct socket *sock, 811 static int qrtr_autobind(struct socket *sock) 826 /* Bind socket to specified sockaddr. */ 827 static int qrtr_bind(struct socket *sock, struct sockaddr *saddr, int len) 847 /* Queue packet to local peer socket [all...] |
/linux-master/net/tipc/ |
H A D | socket.c | 2 * net/tipc/socket.c: TIPC socket API 47 #include "socket.h" 75 * struct tipc_sock - TIPC socket structure 76 * @sk: socket - interacts with 'port' and with user via the socket API 79 * @portid: unique port identity in TIPC socket hash table 88 * @snt_unacked: # messages sent by socket, and not yet acked by peer 95 * @mc_method: cookie for use between socket and broadcast layer 102 * @pkt_cnt: TIPC socket packe [all...] |