Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 25 of 156) sorted by relevance

1234567

/net/atm/
Dcommon.h14 int vcc_create(struct net *net, struct socket *sock, int protocol, int family, int kern);
15 int vcc_release(struct socket *sock);
16 int vcc_connect(struct socket *sock, int itf, short vpi, int vci);
17 int vcc_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
19 int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len);
20 __poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait);
21 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
22 int vcc_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
23 int vcc_setsockopt(struct socket *sock, int level, int optname,
25 int vcc_getsockopt(struct socket *sock, int level, int optname,
Dpvc.c22 static int pvc_shutdown(struct socket *sock, int how) in pvc_shutdown()
27 static int pvc_bind(struct socket *sock, struct sockaddr *sockaddr, in pvc_bind()
59 static int pvc_connect(struct socket *sock, struct sockaddr *sockaddr, in pvc_connect()
65 static int pvc_setsockopt(struct socket *sock, int level, int optname, in pvc_setsockopt()
77 static int pvc_getsockopt(struct socket *sock, int level, int optname, in pvc_getsockopt()
89 static int pvc_getname(struct socket *sock, struct sockaddr *sockaddr, in pvc_getname()
133 static int pvc_create(struct net *net, struct socket *sock, int protocol, in pvc_create()
Dsvc.c31 static int svc_create(struct net *net, struct socket *sock, int protocol,
41 static int svc_shutdown(struct socket *sock, int how) in svc_shutdown()
75 static int svc_release(struct socket *sock) in svc_release()
95 static int svc_bind(struct socket *sock, struct sockaddr *sockaddr, in svc_bind()
151 static int svc_connect(struct socket *sock, struct sockaddr *sockaddr, in svc_connect()
282 static int svc_listen(struct socket *sock, int backlog) in svc_listen()
322 static int svc_accept(struct socket *sock, struct socket *newsock, int flags, in svc_accept()
421 static int svc_getname(struct socket *sock, struct sockaddr *sockaddr, in svc_getname()
453 static int svc_setsockopt(struct socket *sock, int level, int optname, in svc_setsockopt()
498 static int svc_getsockopt(struct socket *sock, int level, int optname, in svc_getsockopt()
[all …]
Dioctl.c51 static int do_vcc_ioctl(struct socket *sock, unsigned int cmd, in do_vcc_ioctl()
171 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in vcc_ioctl()
230 static int do_atm_iobuf(struct socket *sock, unsigned int cmd, in do_atm_iobuf()
261 static int do_atmif_sioc(struct socket *sock, unsigned int cmd, in do_atmif_sioc()
290 static int do_atm_ioctl(struct socket *sock, unsigned int cmd32, in do_atm_ioctl()
343 int vcc_compat_ioctl(struct socket *sock, unsigned int cmd, in vcc_compat_ioctl()
/net/rds/
Dtcp.h21 struct socket *t_sock;
52 void rds_tcp_tune(struct socket *sock);
53 void rds_tcp_nonagle(struct socket *sock);
54 void rds_tcp_set_callbacks(struct socket *sock, struct rds_conn_path *cp);
55 void rds_tcp_reset_callbacks(struct socket *sock, struct rds_conn_path *cp);
56 void rds_tcp_restore_callbacks(struct socket *sock,
70 struct socket *rds_tcp_listen_init(struct net *net, bool isv6);
71 void rds_tcp_listen_stop(struct socket *sock, struct work_struct *acceptor);
73 int rds_tcp_accept_one(struct socket *sock);
74 int rds_tcp_keepalive(struct socket *sock);
[all …]
Dtcp_listen.c41 int rds_tcp_keepalive(struct socket *sock) in rds_tcp_keepalive()
114 void rds_tcp_set_linger(struct socket *sock) in rds_tcp_set_linger()
125 int rds_tcp_accept_one(struct socket *sock) in rds_tcp_accept_one()
127 struct socket *new_sock = NULL; in rds_tcp_accept_one()
288 struct socket *rds_tcp_listen_init(struct net *net, bool isv6) in rds_tcp_listen_init()
290 struct socket *sock = NULL; in rds_tcp_listen_init()
347 void rds_tcp_listen_stop(struct socket *sock, struct work_struct *acceptor) in rds_tcp_listen_stop()
Dtcp.c94 void rds_tcp_nonagle(struct socket *sock) in rds_tcp_nonagle()
113 void rds_tcp_restore_callbacks(struct socket *sock, in rds_tcp_restore_callbacks()
148 void rds_tcp_reset_callbacks(struct socket *sock, in rds_tcp_reset_callbacks()
152 struct socket *osock = tc->t_sock; in rds_tcp_reset_callbacks()
203 void rds_tcp_set_callbacks(struct socket *sock, struct rds_conn_path *cp) in rds_tcp_set_callbacks()
241 static void rds_tcp_tc_info(struct socket *rds_sock, unsigned int len, in rds_tcp_tc_info()
287 static void rds6_tcp_tc_info(struct socket *sock, unsigned int len, in rds6_tcp_tc_info()
489 struct socket *rds_tcp_listen_sock;
500 void rds_tcp_tune(struct socket *sock) in rds_tcp_tune()
603 struct socket *lsock = rtn->rds_tcp_listen_sock; in rds_tcp_kill_sock()
[all …]
Daf_rds.c59 static int rds_release(struct socket *sock) in rds_release()
114 static int rds_getname(struct socket *sock, struct sockaddr *uaddr, in rds_getname()
212 static __poll_t rds_poll(struct file *file, struct socket *sock, in rds_poll()
255 static int rds_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in rds_ioctl()
434 static int rds_setsockopt(struct socket *sock, int level, int optname, in rds_setsockopt()
485 static int rds_getsockopt(struct socket *sock, int level, int optname, in rds_getsockopt()
538 static int rds_connect(struct socket *sock, struct sockaddr *uaddr, in rds_connect()
669 static int __rds_create(struct socket *sock, struct sock *sk, int protocol) in __rds_create()
700 static int rds_create(struct net *net, struct socket *sock, int protocol, in rds_create()
731 static void rds_sock_inc_info(struct socket *sock, unsigned int len, in rds_sock_inc_info()
[all …]
/net/rxrpc/
Dlocal_object.c117 local->srx.transport_type, 0, &local->socket); in rxrpc_open_socket()
124 usk = local->socket->sk; in rxrpc_open_socket()
148 ret = kernel_bind(local->socket, in rxrpc_open_socket()
161 ret = kernel_setsockopt(local->socket, SOL_IPV6, IPV6_RECVERR, in rxrpc_open_socket()
170 ret = kernel_setsockopt(local->socket, SOL_IPV6, IPV6_MTU_DISCOVER, in rxrpc_open_socket()
184 ret = kernel_setsockopt(local->socket, SOL_IP, IP_RECVERR, in rxrpc_open_socket()
193 ret = kernel_setsockopt(local->socket, SOL_IP, IP_MTU_DISCOVER, in rxrpc_open_socket()
202 ret = kernel_setsockopt(local->socket, SOL_SOCKET, SO_TIMESTAMPNS_OLD, in rxrpc_open_socket()
218 kernel_sock_shutdown(local->socket, SHUT_RDWR); in rxrpc_open_socket()
219 local->socket->sk->sk_user_data = NULL; in rxrpc_open_socket()
[all …]
Daf_rxrpc.c129 static int rxrpc_bind(struct socket *sock, struct sockaddr *saddr, int len) in rxrpc_bind()
208 static int rxrpc_listen(struct socket *sock, int backlog) in rxrpc_listen()
279 struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock, in rxrpc_kernel_begin_call()
350 void rxrpc_kernel_end_call(struct socket *sock, struct rxrpc_call *call) in rxrpc_kernel_end_call()
383 bool rxrpc_kernel_check_life(const struct socket *sock, in rxrpc_kernel_check_life()
403 void rxrpc_kernel_probe_life(struct socket *sock, struct rxrpc_call *call) in rxrpc_kernel_probe_life()
419 u32 rxrpc_kernel_get_epoch(struct socket *sock, struct rxrpc_call *call) in rxrpc_kernel_get_epoch()
434 struct socket *sock, in rxrpc_kernel_new_call_notification()
454 void rxrpc_kernel_set_max_life(struct socket *sock, struct rxrpc_call *call, in rxrpc_kernel_set_max_life()
475 static int rxrpc_connect(struct socket *sock, struct sockaddr *addr, in rxrpc_connect()
[all …]
Doutput.c216 ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); in rxrpc_send_ack_packet()
305 ret = kernel_sendmsg(conn->params.local->socket, in rxrpc_send_abort_packet()
416 ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); in rxrpc_send_data_packet()
488 ret = kernel_setsockopt(conn->params.local->socket, in rxrpc_send_data_packet()
492 ret = kernel_sendmsg(conn->params.local->socket, &msg, in rxrpc_send_data_packet()
497 kernel_setsockopt(conn->params.local->socket, SOL_IP, in rxrpc_send_data_packet()
506 ret = kernel_setsockopt(conn->params.local->socket, in rxrpc_send_data_packet()
510 ret = kernel_sendmsg(conn->params.local->socket, &msg, in rxrpc_send_data_packet()
515 kernel_setsockopt(conn->params.local->socket, in rxrpc_send_data_packet()
599 ret = kernel_sendmsg(local->socket, &msg, in rxrpc_reject_packets()
[all …]
/net/unix/
Daf_unix.c607 static int unix_listen(struct socket *sock, int backlog) in unix_listen()
638 static int unix_release(struct socket *);
639 static int unix_bind(struct socket *, struct sockaddr *, int);
640 static int unix_stream_connect(struct socket *, struct sockaddr *,
642 static int unix_socketpair(struct socket *, struct socket *);
643 static int unix_accept(struct socket *, struct socket *, int, bool);
644 static int unix_getname(struct socket *, struct sockaddr *, int);
645 static __poll_t unix_poll(struct file *, struct socket *, poll_table *);
646 static __poll_t unix_dgram_poll(struct file *, struct socket *,
648 static int unix_ioctl(struct socket *, unsigned int, unsigned long);
[all …]
/net/
Dsocket.c242 init_waitqueue_head(&ei->socket.wq.wait); in sock_alloc_inode()
243 ei->socket.wq.fasync_list = NULL; in sock_alloc_inode()
244 ei->socket.wq.flags = 0; in sock_alloc_inode()
246 ei->socket.state = SS_UNCONNECTED; in sock_alloc_inode()
247 ei->socket.flags = 0; in sock_alloc_inode()
248 ei->socket.ops = NULL; in sock_alloc_inode()
249 ei->socket.sk = NULL; in sock_alloc_inode()
250 ei->socket.file = NULL; in sock_alloc_inode()
391 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname) in sock_alloc_file()
412 static int sock_map_fd(struct socket *sock, int flags) in sock_map_fd()
[all …]
/net/smc/
DKconfig3 tristate "SMC socket protocol family"
10 a separate socket family SMC.
12 Select this option if you want to run SMC socket applications
15 tristate "SMC: socket monitoring interface"
18 Support for SMC socket monitoring interface used by tools such as
/net/bluetooth/hidp/
Dsock.c32 static int hidp_sock_release(struct socket *sock) in hidp_sock_release()
49 static int do_hidp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_hidp_sock_ioctl()
55 struct socket *csock; in do_hidp_sock_ioctl()
56 struct socket *isock; in do_hidp_sock_ioctl()
125 static int hidp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in hidp_sock_ioctl()
147 static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in hidp_sock_compat_ioctl()
174 struct socket *csock; in hidp_sock_compat_ioctl()
175 struct socket *isock; in hidp_sock_compat_ioctl()
250 static int hidp_sock_create(struct net *net, struct socket *sock, int protocol, in hidp_sock_create()
Dhidp.h125 int hidp_connection_add(const struct hidp_connadd_req *req, struct socket *ctrl_sock, struct socket
152 struct socket *ctrl_sock;
153 struct socket *intr_sock;
/net/ipv4/
Dudp_tunnel.c14 struct socket **sockp) in udp_sock_create4()
17 struct socket *sock = NULL; in udp_sock_create4()
65 void setup_udp_tunnel_sock(struct net *net, struct socket *sock, in setup_udp_tunnel_sock()
89 void udp_tunnel_push_rx_port(struct net_device *dev, struct socket *sock, in udp_tunnel_push_rx_port()
107 void udp_tunnel_drop_rx_port(struct net_device *dev, struct socket *sock, in udp_tunnel_drop_rx_port()
126 void udp_tunnel_notify_add_rx_port(struct socket *sock, unsigned short type) in udp_tunnel_notify_add_rx_port()
150 void udp_tunnel_notify_del_rx_port(struct socket *sock, unsigned short type) in udp_tunnel_notify_del_rx_port()
196 void udp_tunnel_sock_release(struct socket *sock) in udp_tunnel_sock_release()
/net/bluetooth/bnep/
Dsock.c36 static int bnep_sock_release(struct socket *sock) in bnep_sock_release()
52 static int do_bnep_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_bnep_sock_ioctl()
58 struct socket *nsock; in do_bnep_sock_ioctl()
136 static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in bnep_sock_ioctl()
142 static int bnep_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in bnep_sock_compat_ioctl()
199 static int bnep_sock_create(struct net *net, struct socket *sock, int protocol, in bnep_sock_create()
/net/bluetooth/cmtp/
Dsock.c49 static int cmtp_sock_release(struct socket *sock) in cmtp_sock_release()
66 static int do_cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_cmtp_sock_ioctl()
72 struct socket *nsock; in do_cmtp_sock_ioctl()
139 static int cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in cmtp_sock_ioctl()
145 static int cmtp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in cmtp_sock_compat_ioctl()
202 static int cmtp_sock_create(struct net *net, struct socket *sock, int protocol, in cmtp_sock_create()
/net/bluetooth/rfcomm/
Dsock.c274 static struct sock *rfcomm_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio, … in rfcomm_sock_alloc()
315 static int rfcomm_sock_create(struct net *net, struct socket *sock, in rfcomm_sock_create()
337 static int rfcomm_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) in rfcomm_sock_bind()
384 static int rfcomm_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) in rfcomm_sock_connect()
427 static int rfcomm_sock_listen(struct socket *sock, int backlog) in rfcomm_sock_listen()
476 static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock, int flags, in rfcomm_sock_accept()
537 static int rfcomm_sock_getname(struct socket *sock, struct sockaddr *addr, int peer) in rfcomm_sock_getname()
559 static int rfcomm_sock_sendmsg(struct socket *sock, struct msghdr *msg, in rfcomm_sock_sendmsg()
625 static int rfcomm_sock_recvmsg(struct socket *sock, struct msghdr *msg, in rfcomm_sock_recvmsg()
650 static int rfcomm_sock_setsockopt_old(struct socket *sock, int optname, char __user *optval, unsign… in rfcomm_sock_setsockopt_old()
[all …]
/net/nfc/
Dllcp_sock.c59 static int llcp_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in llcp_sock_bind()
138 static int llcp_raw_sock_bind(struct socket *sock, struct sockaddr *addr, in llcp_raw_sock_bind()
193 static int llcp_sock_listen(struct socket *sock, int backlog) in llcp_sock_listen()
220 static int nfc_llcp_setsockopt(struct socket *sock, int level, int optname, in nfc_llcp_setsockopt()
293 static int nfc_llcp_getsockopt(struct socket *sock, int level, int optname, in nfc_llcp_getsockopt()
398 struct socket *newsock) in nfc_llcp_accept_dequeue()
438 static int llcp_sock_accept(struct socket *sock, struct socket *newsock, in llcp_sock_accept()
492 static int llcp_sock_getname(struct socket *sock, struct sockaddr *uaddr, in llcp_sock_getname()
544 static __poll_t llcp_sock_poll(struct file *file, struct socket *sock, in llcp_sock_poll()
583 static int llcp_sock_release(struct socket *sock) in llcp_sock_release()
[all …]
/net/can/
DKconfig28 the BSD socket API. You probably want to use the raw socket in
30 socket has several filter options e.g. ID masking / error frames.
39 interaction. The BCM can be 'programmed' via the BSD socket API and
41 You probably want to use the bcm socket in most cases where cyclic
/net/llc/
Daf_llc.c138 static void llc_ui_sk_init(struct socket *sock, struct sock *sk) in llc_ui_sk_init()
163 static int llc_ui_create(struct net *net, struct socket *sock, int protocol, in llc_ui_create()
192 static int llc_ui_release(struct socket *sock) in llc_ui_release()
267 static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr) in llc_ui_autobind()
319 static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen) in llc_ui_bind()
415 static int llc_ui_shutdown(struct socket *sock, int how) in llc_ui_shutdown()
450 static int llc_ui_connect(struct socket *sock, struct sockaddr *uaddr, in llc_ui_connect()
523 static int llc_ui_listen(struct socket *sock, int backlog) in llc_ui_listen()
665 static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags, in llc_ui_accept()
728 static int llc_ui_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, in llc_ui_recvmsg()
[all …]
/net/phonet/
Dsocket.c28 static int pn_socket_release(struct socket *sock) in pn_socket_release()
156 static int pn_socket_bind(struct socket *sock, struct sockaddr *addr, int len) in pn_socket_bind()
202 static int pn_socket_autobind(struct socket *sock) in pn_socket_autobind()
217 static int pn_socket_connect(struct socket *sock, struct sockaddr *addr, in pn_socket_connect()
294 static int pn_socket_accept(struct socket *sock, struct socket *newsock, in pn_socket_accept()
315 static int pn_socket_getname(struct socket *sock, struct sockaddr *addr, in pn_socket_getname()
330 static __poll_t pn_socket_poll(struct file *file, struct socket *sock, in pn_socket_poll()
356 static int pn_socket_ioctl(struct socket *sock, unsigned int cmd, in pn_socket_ioctl()
394 static int pn_socket_listen(struct socket *sock, int backlog) in pn_socket_listen()
418 static int pn_socket_sendmsg(struct socket *sock, struct msghdr *m, in pn_socket_sendmsg()
/net/bluetooth/
Dsco.c469 static struct sock *sco_sock_alloc(struct net *net, struct socket *sock, in sco_sock_alloc()
497 static int sco_sock_create(struct net *net, struct socket *sock, int protocol, in sco_sock_create()
519 static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, in sco_sock_bind()
553 static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) in sco_sock_connect()
588 static int sco_sock_listen(struct socket *sock, int backlog) in sco_sock_listen()
628 static int sco_sock_accept(struct socket *sock, struct socket *newsock, in sco_sock_accept()
683 static int sco_sock_getname(struct socket *sock, struct sockaddr *addr, in sco_sock_getname()
701 static int sco_sock_sendmsg(struct socket *sock, struct msghdr *msg, in sco_sock_sendmsg()
771 static int sco_sock_recvmsg(struct socket *sock, struct msghdr *msg, in sco_sock_recvmsg()
793 static int sco_sock_setsockopt(struct socket *sock, int level, int optname, in sco_sock_setsockopt()
[all …]

1234567