Searched refs:socket (Results 226 - 250 of 881) sorted by relevance

1234567891011>>

/linux-master/net/sunrpc/
H A Dsocklib.c5 * Common socket helper routines for RPC client and server
206 static inline int xprt_sendmsg(struct socket *sock, struct msghdr *msg,
214 static int xprt_send_kvec(struct socket *sock, struct msghdr *msg,
221 static int xprt_send_pagedata(struct socket *sock, struct msghdr *msg,
234 static int xprt_send_rm_and_kvec(struct socket *sock, struct msghdr *msg,
252 * xprt_sock_sendmsg - write an xdr_buf directly to a socket
253 * @sock: open socket to send on
254 * @msg: socket message metadata
262 * %-ENOTSOCK if @sock is not a struct socket.
264 int xprt_sock_sendmsg(struct socket *soc
[all...]
/linux-master/drivers/vhost/
H A Dnet.c341 static bool vhost_sock_zcopy(struct socket *sock)
347 static bool vhost_sock_xdp(struct socket *sock)
439 struct socket *sock;
462 struct socket *sock,
497 static int sock_has_rx_data(struct socket *sock)
527 struct socket *sock;
664 struct socket *sock = vhost_vq_get_backend(vq);
737 static void handle_tx_copy(struct vhost_net *net, struct socket *sock)
827 static void handle_tx_zerocopy(struct vhost_net *net, struct socket *sock)
940 struct socket *soc
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_metadata.c56 struct xsk_socket *socket; member in struct:xsk
91 ret = xsk_socket__create(&xsk->socket, ifindex, QUEUE_ID,
130 if (xsk->socket)
131 xsk_socket__delete(xsk->socket);
212 ret = sendto(xsk_socket__fd(xsk->socket), NULL, 0, MSG_DONTWAIT, NULL, 0);
231 sock_fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
232 if (!ASSERT_GE(sock_fd, 0, "socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)"))
289 ret = recvfrom(xsk_socket__fd(xsk->socket), NULL, 0, MSG_DONTWAIT, NULL, NULL);
293 fds.fd = xsk_socket__fd(xsk->socket);
446 sock_fd = xsk_socket__fd(rx_xsk.socket);
[all...]
H A Dsockopt_inherit.c18 fd = socket(AF_INET, SOCK_STREAM, 0);
20 log_err("Failed to create client socket");
81 if (!ASSERT_GE(err, 0, "listed on socket"))
112 fd = socket(AF_INET, SOCK_STREAM, 0);
114 log_err("Failed to create server socket");
129 log_err("Failed to bind socket");
/linux-master/tools/perf/util/
H A Dcpumap.c210 id.socket = cpu__get_socket_id(cpu);
221 else if (a->socket != b->socket)
222 return a->socket - b->socket;
302 * die_id is relative to socket, so start
303 * with the socket ID and then add die to
349 /* aggr_cpu_id__die returns a struct with socket die, and cluster set. */
355 * core_id is relative to socket and die, we need a global id.
367 /* aggr_cpu_id__core returns a struct with socket, di
[all...]
/linux-master/include/net/
H A Dsock.h7 * Definitions for the AF_INET socket handler.
22 * a socket is reset and must stay shut up
26 * David S. Miller : New socket lookup architecture.
33 * Pedro Hortas : New flags field for socket options
71 #include <uapi/linux/socket.h>
79 /* This is the per-socket lock. The spinlock provides a synchronization
119 * @skc_ipv6only: socket is IPV6 only
120 * @skc_net_refcnt: socket is using net ref counting
125 * @skc_net: reference to the network namespace of this socket
128 * @skc_cookie: socket'
1533 struct socket socket; member in struct:socket_alloc
1542 SOCK_INODE(struct socket *socket) argument
[all...]
/linux-master/drivers/isdn/mISDN/
H A Dsocket.c106 mISDN_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
167 mISDN_sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
236 data_sock_release(struct socket *sock)
350 data_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
403 static int data_sock_setsockopt(struct socket *sock, int level, int optname,
435 static int data_sock_getsockopt(struct socket *sock, int level, int optname,
465 data_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len)
552 data_sock_getname(struct socket *sock, struct sockaddr *addr,
593 data_sock_create(struct net *net, struct socket *sock, int protocol, int kern)
618 base_sock_release(struct socket *soc
[all...]
/linux-master/drivers/xen/
H A Dpvcalls-front.c8 #include <linux/socket.h>
59 struct socket *sock;
83 * Only one accept operation can be inflight for a socket.
84 * Only one poll operation can be inflight for a given socket.
99 static inline struct sock_mapping *pvcalls_enter_sock(struct socket *sock)
116 static inline void pvcalls_exit_sock(struct socket *sock)
270 int pvcalls_front_socket(struct socket *sock)
281 * Check socket type here, AF_INET and protocol checks are done
313 * corresponding to the socket. This way, we can easily get the
314 * struct sock_mapping from the struct socket
[all...]
/linux-master/crypto/
H A Dalgif_skcipher.c37 static int skcipher_sendmsg(struct socket *sock, struct msghdr *msg,
96 static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg,
213 static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg,
265 static int skcipher_check_key(struct socket *sock)
300 static int skcipher_sendmsg_nokey(struct socket *sock, struct msghdr *msg,
312 static int skcipher_recvmsg_nokey(struct socket *sock, struct msghdr *msg,
/linux-master/include/net/bluetooth/
H A Dbluetooth.h113 * If the L2CAP socket has not been connected yet, try to create
287 /* Connection and socket states */
375 /* Common socket structures and functions */
406 struct sock *bt_sock_alloc(struct net *net, struct socket *sock,
408 int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
410 int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg,
412 __poll_t bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait);
413 int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
419 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock);
/linux-master/net/rds/
H A Daf_rds.c51 * This is called as the final descriptor referencing this socket is closed.
52 * We have to unbind the socket so that another socket can be bound to the
59 static int rds_release(struct socket *sock)
72 * with the socket. */
114 static int rds_getname(struct socket *sock, struct sockaddr *uaddr,
145 /* If socket is not yet bound and the socket is connected,
204 * - A notification has been queued to the socket (this can be a congestion
212 static __poll_t rds_poll(struct file *file, struct socket *soc
[all...]
/linux-master/include/trace/events/
H A Dsunrpc.h848 struct socket *socket
851 TP_ARGS(xprt, socket),
862 struct inode *inode = SOCK_INODE(socket);
863 const struct sock *sk = socket->sk;
871 __entry->socket_state = socket->state;
872 __entry->sock_state = socket->sk->sk_state;
878 "socket:[%llu] srcaddr=%pISpc dstaddr=%pISpc "
893 struct socket *socket \
[all...]
/linux-master/drivers/net/
H A Dtun.c121 * also contains all socket related structures (except sock_fprog and tap_filter)
133 struct socket socket; member in struct:tun_file
176 /* Since the socket were moved to tun_file, to preserve the behavior of persist
177 * device, socket filter, sndbuf and vnet header size were restore when the
720 tfile->socket.sk->sk_shutdown = RCV_SHUTDOWN;
721 tfile->socket.sk->sk_data_ready(tfile->socket.sk);
726 tfile->socket.sk->sk_shutdown = RCV_SHUTDOWN;
727 tfile->socket
[all...]
/linux-master/drivers/block/drbd/
H A Ddrbd_receiver.c257 * (checksum based) resync, if the max-buffers, socket buffer sizes and
500 static int drbd_recv_short(struct socket *sock, void *buf, size_t size, int flags)
517 rv = drbd_recv_short(connection->data.socket, buf, size, 0);
570 * On individual connections, the socket buffer size must be set prior to the
574 static void drbd_setbufsize(struct socket *sock, unsigned int snd,
588 static struct socket *drbd_try_connect(struct drbd_connection *connection)
591 struct socket *sock;
678 struct socket *s_listen;
699 struct socket *s_listen;
766 static struct socket *drbd_wait_for_connec
[all...]
/linux-master/samples/connector/
H A Ducon.c11 #include <sys/socket.h>
139 s = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_CONNECTOR);
141 perror("socket");
/linux-master/include/uapi/linux/
H A Dif.h25 #include <linux/socket.h> /* for "struct sockaddr" et al */
29 #include <sys/socket.h> /* for struct sockaddr. */
226 * Interface request structure used for socket
/linux-master/tools/testing/selftests/exec/
H A Dnon-regular.c7 #include <sys/socket.h>
177 self->fd = socket(AF_INET, SOCK_STREAM, 0);
189 char * const argv[2] = { " magic socket ", NULL };
/linux-master/tools/testing/selftests/net/
H A Dreuseaddr_ports_exhausted.c14 * there is no socket having the both options and the same EUID,
22 #include <sys/socket.h>
60 fd = socket(AF_INET, SOCK_STREAM, 0);
61 ASSERT_NE(-1, fd) TH_LOG("failed to open socket.");
146 EXPECT_NE(-1, fd[1]) TH_LOG("should succeed to bind because one socket can be bound in each euid.");
H A Dreuseport_bpf.c5 * of that number, and then dispatch the packet to the Nth socket using the
23 #include <sys/socket.h>
158 fd[i] = socket(p.recv_family, p.protocol, 0);
171 error(1, errno, "failed to bind recv socket %d", i);
180 error(1, errno, "failed to listen on socket");
192 const int fd = socket(p.send_family, p.protocol, 0), one = 1;
195 error(1, errno, "failed to create send socket");
201 error(1, errno, "failed to bind send socket");
267 error(1, 0, "expected socket %d", expected);
312 fd1 = socket(
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dxdp_redirect_multi.c15 #include <sys/socket.h>
51 fd = socket(AF_INET, SOCK_DGRAM, 0);
H A Dtest_skb_cgroup_id_user.c11 #include <sys/socket.h>
58 fd = socket(AF_INET6, SOCK_DGRAM, 0);
60 log_err("Failed to create UDP socket");
/linux-master/include/linux/soc/qcom/
H A Dqmi.h16 struct socket;
201 * @sock: socket handle
217 struct socket *sock;
/linux-master/tools/testing/vsock/
H A Dcontrol.c2 /* Control socket for client/server test execution
10 * the client attempting to connect to a socket that the server is not
11 * listening on yet. The control socket offers a communications channel for
26 #include <sys/socket.h>
33 /* Open the control socket, either in server or client mode */
55 fd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
63 printf("Control socket connected to %s:%s.\n",
79 printf("Control socket listening on %s:%s\n",
90 printf("Control socket connection accepted...\n");
98 fprintf(stderr, "Control socket initializatio
[all...]
/linux-master/net/vmw_vsock/
H A Dvsock_bpf.c10 #include <linux/socket.h>
63 struct socket *sock = sk->sk_socket;
/linux-master/tools/testing/selftests/netfilter/
H A Daudit_logread.c12 #include <sys/socket.h>
147 fd = socket(PF_NETLINK, SOCK_RAW, NETLINK_AUDIT);
149 perror("Can't open netlink socket");

Completed in 617 milliseconds

1234567891011>>