Home
last modified time | relevance | path

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

123456

/net/atm/
Dcommon.h13 int vcc_create(struct net *net, struct socket *sock, int protocol, int family);
14 int vcc_release(struct socket *sock);
15 int vcc_connect(struct socket *sock, int itf, short vpi, int vci);
16 int vcc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg,
18 int vcc_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *m,
20 unsigned int 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.c21 static int pvc_shutdown(struct socket *sock, int how) in pvc_shutdown()
26 static int pvc_bind(struct socket *sock, struct sockaddr *sockaddr, in pvc_bind()
58 static int pvc_connect(struct socket *sock, struct sockaddr *sockaddr, in pvc_connect()
64 static int pvc_setsockopt(struct socket *sock, int level, int optname, in pvc_setsockopt()
76 static int pvc_getsockopt(struct socket *sock, int level, int optname, in pvc_getsockopt()
88 static int pvc_getname(struct socket *sock, struct sockaddr *sockaddr, in pvc_getname()
132 static int pvc_create(struct net *net, struct socket *sock, int protocol, in pvc_create()
Dsvc.c30 static int svc_create(struct net *net, struct socket *sock, int protocol,
40 static int svc_shutdown(struct socket *sock, int how) in svc_shutdown()
74 static int svc_release(struct socket *sock) in svc_release()
94 static int svc_bind(struct socket *sock, struct sockaddr *sockaddr, in svc_bind()
150 static int svc_connect(struct socket *sock, struct sockaddr *sockaddr, in svc_connect()
281 static int svc_listen(struct socket *sock, int backlog) in svc_listen()
321 static int svc_accept(struct socket *sock, struct socket *newsock, int flags) in svc_accept()
419 static int svc_getname(struct socket *sock, struct sockaddr *sockaddr, in svc_getname()
452 static int svc_setsockopt(struct socket *sock, int level, int optname, in svc_setsockopt()
497 static int svc_getsockopt(struct socket *sock, int level, int optname, in svc_getsockopt()
[all …]
Dioctl.c50 static int do_vcc_ioctl(struct socket *sock, unsigned int cmd, in do_vcc_ioctl()
186 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in vcc_ioctl()
245 static int do_atm_iobuf(struct socket *sock, unsigned int cmd, in do_atm_iobuf()
276 static int do_atmif_sioc(struct socket *sock, unsigned int cmd, in do_atmif_sioc()
305 static int do_atm_ioctl(struct socket *sock, unsigned int cmd32, in do_atm_ioctl()
358 int vcc_compat_ioctl(struct socket *sock, unsigned int cmd, in vcc_compat_ioctl()
/net/rxrpc/
Dar-local.c69 &local->socket); in rxrpc_create_local()
78 ret = kernel_bind(local->socket, in rxrpc_create_local()
89 ret = kernel_setsockopt(local->socket, SOL_IP, IP_RECVERR, in rxrpc_create_local()
98 ret = kernel_setsockopt(local->socket, SOL_IP, IP_MTU_DISCOVER, in rxrpc_create_local()
110 sock = local->socket->sk; in rxrpc_create_local()
118 kernel_sock_shutdown(local->socket, SHUT_RDWR); in rxrpc_create_local()
119 local->socket->sk->sk_user_data = NULL; in rxrpc_create_local()
120 sock_release(local->socket); in rxrpc_create_local()
121 local->socket = NULL; in rxrpc_create_local()
259 local->socket->sk->sk_user_data = NULL; in rxrpc_destroy_local()
[all …]
Daf_rxrpc.c122 static int rxrpc_bind(struct socket *sock, struct sockaddr *saddr, int len) in rxrpc_bind()
188 static int rxrpc_listen(struct socket *sock, int backlog) in rxrpc_listen()
223 static struct rxrpc_transport *rxrpc_name_to_transport(struct socket *sock, in rxrpc_name_to_transport()
269 struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock, in rxrpc_kernel_begin_call()
340 rxrpc_remove_user_ID(call->socket, call); in rxrpc_kernel_end_call()
357 void rxrpc_kernel_intercept_rx_messages(struct socket *sock, in rxrpc_kernel_intercept_rx_messages()
373 static int rxrpc_connect(struct socket *sock, struct sockaddr *addr, in rxrpc_connect()
444 static int rxrpc_sendmsg(struct kiocb *iocb, struct socket *sock, in rxrpc_sendmsg()
513 static int rxrpc_setsockopt(struct socket *sock, int level, int optname, in rxrpc_setsockopt()
589 static unsigned int rxrpc_poll(struct file *file, struct socket *sock, in rxrpc_poll()
[all …]
/net/
Dsocket.c264 RCU_INIT_POINTER(ei->socket.wq, wq); in sock_alloc_inode()
266 ei->socket.state = SS_UNCONNECTED; in sock_alloc_inode()
267 ei->socket.flags = 0; in sock_alloc_inode()
268 ei->socket.ops = NULL; in sock_alloc_inode()
269 ei->socket.sk = NULL; in sock_alloc_inode()
270 ei->socket.file = NULL; in sock_alloc_inode()
281 wq = rcu_dereference_protected(ei->socket.wq, 1); in sock_destroy_inode()
358 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname) in sock_alloc_file()
395 static int sock_map_fd(struct socket *sock, int flags) in sock_map_fd()
412 struct socket *sock_from_file(struct file *file, int *err) in sock_from_file()
[all …]
/net/rds/
Dtcp.h15 struct socket *t_sock;
46 void rds_tcp_tune(struct socket *sock);
47 void rds_tcp_nonagle(struct socket *sock);
48 void rds_tcp_set_callbacks(struct socket *sock, struct rds_connection *conn);
49 void rds_tcp_restore_callbacks(struct socket *sock,
Daf_rds.c67 static int rds_release(struct socket *sock) in rds_release()
127 static int rds_getname(struct socket *sock, struct sockaddr *uaddr, in rds_getname()
170 static unsigned int rds_poll(struct file *file, struct socket *sock, in rds_poll()
210 static int rds_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in rds_ioctl()
273 static int rds_setsockopt(struct socket *sock, int level, int optname, in rds_setsockopt()
310 static int rds_getsockopt(struct socket *sock, int level, int optname, in rds_getsockopt()
349 static int rds_connect(struct socket *sock, struct sockaddr *uaddr, in rds_connect()
409 static int __rds_create(struct socket *sock, struct sock *sk, int protocol) in __rds_create()
435 static int rds_create(struct net *net, struct socket *sock, int protocol, in rds_create()
466 static void rds_sock_inc_info(struct socket *sock, unsigned int len, in rds_sock_inc_info()
[all …]
Dtcp_listen.c46 static struct socket *rds_tcp_listen_sock;
48 static int rds_tcp_accept_one(struct socket *sock) in rds_tcp_accept_one()
50 struct socket *new_sock = NULL; in rds_tcp_accept_one()
141 struct socket *sock = NULL; in rds_tcp_listen_init()
178 struct socket *sock = rds_tcp_listen_sock; in rds_tcp_listen_stop()
/net/ipv4/
Dudp_tunnel.c12 struct socket **sockp) in udp_sock_create4()
15 struct socket *sock = NULL; in udp_sock_create4()
57 void setup_udp_tunnel_sock(struct net *net, struct socket *sock, in setup_udp_tunnel_sock()
78 int udp_tunnel_xmit_skb(struct socket *sock, struct rtable *rt, in udp_tunnel_xmit_skb()
100 void udp_tunnel_sock_release(struct socket *sock) in udp_tunnel_sock_release()
/net/unix/
Daf_unix.c590 static int unix_listen(struct socket *sock, int backlog) in unix_listen()
621 static int unix_release(struct socket *);
622 static int unix_bind(struct socket *, struct sockaddr *, int);
623 static int unix_stream_connect(struct socket *, struct sockaddr *,
625 static int unix_socketpair(struct socket *, struct socket *);
626 static int unix_accept(struct socket *, struct socket *, int);
627 static int unix_getname(struct socket *, struct sockaddr *, int *, int);
628 static unsigned int unix_poll(struct file *, struct socket *, poll_table *);
629 static unsigned int unix_dgram_poll(struct file *, struct socket *,
631 static int unix_ioctl(struct socket *, unsigned int, unsigned long);
[all …]
/net/tipc/
Dcore.h98 int tipc_sock_create_local(int type, struct socket **res);
99 void tipc_sock_release_local(struct socket *sock);
100 int tipc_sock_accept_local(struct socket *sock, struct socket **newsock,
Dsocket.c103 static int tipc_release(struct socket *sock);
104 static int tipc_accept(struct socket *sock, struct socket *new_sock, int flags);
105 static int tipc_wait_for_sndmsg(struct socket *sock, long *timeo_p);
292 static int tipc_sk_create(struct net *net, struct socket *sock, in tipc_sk_create()
379 int tipc_sock_create_local(int type, struct socket **res) in tipc_sock_create_local()
400 void tipc_sock_release_local(struct socket *sock) in tipc_sock_release_local()
417 int tipc_sock_accept_local(struct socket *sock, struct socket **newsock, in tipc_sock_accept_local()
453 static int tipc_release(struct socket *sock) in tipc_release()
534 static int tipc_bind(struct socket *sock, struct sockaddr *uaddr, in tipc_bind()
592 static int tipc_getname(struct socket *sock, struct sockaddr *uaddr, in tipc_getname()
[all …]
/net/bluetooth/hidp/
Dhidp.h125 int hidp_connection_add(struct hidp_connadd_req *req, struct socket *ctrl_sock, struct socket *intr…
152 struct socket *ctrl_sock;
153 struct socket *intr_sock;
Dsock.c32 static int hidp_sock_release(struct socket *sock) in hidp_sock_release()
49 static int hidp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in hidp_sock_ioctl()
56 struct socket *csock; in hidp_sock_ioctl()
57 struct socket *isock; in hidp_sock_ioctl()
142 static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in hidp_sock_compat_ioctl()
228 static int hidp_sock_create(struct net *net, struct socket *sock, int protocol, in hidp_sock_create()
/net/nfc/
Dllcp_sock.c70 static int llcp_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in llcp_sock_bind()
144 static int llcp_raw_sock_bind(struct socket *sock, struct sockaddr *addr, in llcp_raw_sock_bind()
199 static int llcp_sock_listen(struct socket *sock, int backlog) in llcp_sock_listen()
226 static int nfc_llcp_setsockopt(struct socket *sock, int level, int optname, in nfc_llcp_setsockopt()
299 static int nfc_llcp_getsockopt(struct socket *sock, int level, int optname, in nfc_llcp_getsockopt()
404 struct socket *newsock) in nfc_llcp_accept_dequeue()
444 static int llcp_sock_accept(struct socket *sock, struct socket *newsock, in llcp_sock_accept()
498 static int llcp_sock_getname(struct socket *sock, struct sockaddr *uaddr, in llcp_sock_getname()
545 static unsigned int llcp_sock_poll(struct file *file, struct socket *sock, in llcp_sock_poll()
584 static int llcp_sock_release(struct socket *sock) in llcp_sock_release()
[all …]
/net/bluetooth/rfcomm/
Dsock.c272 static struct sock *rfcomm_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio) in rfcomm_sock_alloc()
313 static int rfcomm_sock_create(struct net *net, struct socket *sock, in rfcomm_sock_create()
335 static int rfcomm_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) in rfcomm_sock_bind()
381 static int rfcomm_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) in rfcomm_sock_connect()
424 static int rfcomm_sock_listen(struct socket *sock, int backlog) in rfcomm_sock_listen()
473 static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock, int flags) in rfcomm_sock_accept()
534 static int rfcomm_sock_getname(struct socket *sock, struct sockaddr *addr, int *len, int peer) in rfcomm_sock_getname()
557 static int rfcomm_sock_sendmsg(struct kiocb *iocb, struct socket *sock, in rfcomm_sock_sendmsg()
623 static int rfcomm_sock_recvmsg(struct kiocb *iocb, struct socket *sock, in rfcomm_sock_recvmsg()
648 static int rfcomm_sock_setsockopt_old(struct socket *sock, int optname, char __user *optval, unsign… in rfcomm_sock_setsockopt_old()
[all …]
/net/bluetooth/bnep/
Dsock.c36 static int bnep_sock_release(struct socket *sock) in bnep_sock_release()
52 static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in bnep_sock_ioctl()
58 struct socket *nsock; in bnep_sock_ioctl()
131 static int bnep_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in bnep_sock_compat_ioctl()
188 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 cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in cmtp_sock_ioctl()
72 struct socket *nsock; in cmtp_sock_ioctl()
141 static int cmtp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in cmtp_sock_compat_ioctl()
198 static int cmtp_sock_create(struct net *net, struct socket *sock, int protocol, in cmtp_sock_create()
/net/can/
DKconfig26 the BSD socket API. You probably want to use the raw socket in
28 socket has several filter options e.g. ID masking / error frames.
37 interaction. The BCM can be 'programmed' via the BSD socket API and
39 You probably want to use the bcm socket in most cases where cyclic
/net/llc/
Daf_llc.c132 static void llc_ui_sk_init(struct socket *sock, struct sock *sk) in llc_ui_sk_init()
157 static int llc_ui_create(struct net *net, struct socket *sock, int protocol, in llc_ui_create()
186 static int llc_ui_release(struct socket *sock) in llc_ui_release()
251 static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr) in llc_ui_autobind()
303 static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen) in llc_ui_bind()
397 static int llc_ui_shutdown(struct socket *sock, int how) in llc_ui_shutdown()
432 static int llc_ui_connect(struct socket *sock, struct sockaddr *uaddr, in llc_ui_connect()
505 static int llc_ui_listen(struct socket *sock, int backlog) in llc_ui_listen()
646 static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags) in llc_ui_accept()
708 static int llc_ui_recvmsg(struct kiocb *iocb, struct socket *sock, in llc_ui_recvmsg()
[all …]
/net/ieee802154/
Daf_ieee802154.c96 static int ieee802154_sock_release(struct socket *sock) in ieee802154_sock_release()
106 static int ieee802154_sock_sendmsg(struct kiocb *iocb, struct socket *sock, in ieee802154_sock_sendmsg()
114 static int ieee802154_sock_bind(struct socket *sock, struct sockaddr *uaddr, in ieee802154_sock_bind()
125 static int ieee802154_sock_connect(struct socket *sock, struct sockaddr *uaddr, in ieee802154_sock_connect()
167 static int ieee802154_sock_ioctl(struct socket *sock, unsigned int cmd, in ieee802154_sock_ioctl()
242 static int ieee802154_create(struct net *net, struct socket *sock, in ieee802154_create()
/net/bluetooth/
Dsco.c463 static struct sock *sco_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio) in sco_sock_alloc()
490 static int sco_sock_create(struct net *net, struct socket *sock, int protocol, in sco_sock_create()
512 static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) in sco_sock_bind()
547 static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) in sco_sock_connect()
582 static int sco_sock_listen(struct socket *sock, int backlog) in sco_sock_listen()
622 static int sco_sock_accept(struct socket *sock, struct socket *newsock, int flags) in sco_sock_accept()
678 static int sco_sock_getname(struct socket *sock, struct sockaddr *addr, int *len, int peer) in sco_sock_getname()
696 static int sco_sock_sendmsg(struct kiocb *iocb, struct socket *sock, in sco_sock_sendmsg()
766 static int sco_sock_recvmsg(struct kiocb *iocb, struct socket *sock, in sco_sock_recvmsg()
788 static int sco_sock_setsockopt(struct socket *sock, int level, int optname, char __user *optval, un… in sco_sock_setsockopt()
[all …]
/net/phonet/
Dsocket.c39 static int pn_socket_release(struct socket *sock) in pn_socket_release()
165 static int pn_socket_bind(struct socket *sock, struct sockaddr *addr, int len) in pn_socket_bind()
211 static int pn_socket_autobind(struct socket *sock) in pn_socket_autobind()
226 static int pn_socket_connect(struct socket *sock, struct sockaddr *addr, in pn_socket_connect()
303 static int pn_socket_accept(struct socket *sock, struct socket *newsock, in pn_socket_accept()
324 static int pn_socket_getname(struct socket *sock, struct sockaddr *addr, in pn_socket_getname()
340 static unsigned int pn_socket_poll(struct file *file, struct socket *sock, in pn_socket_poll()
366 static int pn_socket_ioctl(struct socket *sock, unsigned int cmd, in pn_socket_ioctl()
404 static int pn_socket_listen(struct socket *sock, int backlog) in pn_socket_listen()
428 static int pn_socket_sendmsg(struct kiocb *iocb, struct socket *sock, in pn_socket_sendmsg()

123456