Home
last modified time | relevance | path

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

123

/linux-4.19.296/include/linux/
Dnet.h116 struct socket { struct
142 int (*release) (struct socket *sock); argument
143 int (*bind) (struct socket *sock,
146 int (*connect) (struct socket *sock,
149 int (*socketpair)(struct socket *sock1,
150 struct socket *sock2);
151 int (*accept) (struct socket *sock,
152 struct socket *newsock, int flags, bool kern);
153 int (*getname) (struct socket *sock,
156 __poll_t (*poll) (struct file *file, struct socket *sock,
[all …]
Dsecurity.h110 struct socket;
1202 int security_unix_may_send(struct socket *sock, struct socket *other);
1204 int security_socket_post_create(struct socket *sock, int family,
1206 int security_socket_socketpair(struct socket *socka, struct socket *sockb);
1207 int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen);
1208 int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen);
1209 int security_socket_listen(struct socket *sock, int backlog);
1210 int security_socket_accept(struct socket *sock, struct socket *newsock);
1211 int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size);
1212 int security_socket_recvmsg(struct socket *sock, struct msghdr *msg,
[all …]
Dif_tap.h6 struct socket *tap_get_socket(struct file *);
12 struct socket;
13 static inline struct socket *tap_get_socket(struct file *f) in tap_get_socket()
64 struct socket sock;
Dif_pppox.h77 int (*create)(struct net *net, struct socket *sock, int kern);
78 int (*ioctl)(struct socket *sock, unsigned int cmd,
86 extern int pppox_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
87 extern int pppox_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
Dif_tun.h23 struct socket *tun_get_socket(struct file *);
33 struct socket;
34 static inline struct socket *tun_get_socket(struct file *f) in tun_get_socket()
Dlsm_hooks.h1666 int (*unix_may_send)(struct socket *sock, struct socket *other);
1669 int (*socket_post_create)(struct socket *sock, int family, int type,
1671 int (*socket_socketpair)(struct socket *socka, struct socket *sockb);
1672 int (*socket_bind)(struct socket *sock, struct sockaddr *address,
1674 int (*socket_connect)(struct socket *sock, struct sockaddr *address,
1676 int (*socket_listen)(struct socket *sock, int backlog);
1677 int (*socket_accept)(struct socket *sock, struct socket *newsock);
1678 int (*socket_sendmsg)(struct socket *sock, struct msghdr *msg,
1680 int (*socket_recvmsg)(struct socket *sock, struct msghdr *msg,
1682 int (*socket_getsockname)(struct socket *sock);
[all …]
/linux-4.19.296/include/net/
Daf_rxrpc.h19 struct socket;
48 void rxrpc_kernel_new_call_notification(struct socket *,
51 struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *,
60 int rxrpc_kernel_send_data(struct socket *, struct rxrpc_call *,
63 int rxrpc_kernel_recv_data(struct socket *, struct rxrpc_call *,
65 bool rxrpc_kernel_abort_call(struct socket *, struct rxrpc_call *,
67 void rxrpc_kernel_end_call(struct socket *, struct rxrpc_call *);
68 void rxrpc_kernel_get_peer(struct socket *, struct rxrpc_call *,
70 u64 rxrpc_kernel_get_rtt(struct socket *, struct rxrpc_call *);
71 int rxrpc_kernel_charge_accept(struct socket *, rxrpc_notify_rx_t,
[all …]
Dinet_common.h15 struct socket;
17 int inet_release(struct socket *sock);
18 int inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
20 int __inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
22 int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr,
24 int inet_accept(struct socket *sock, struct socket *newsock, int flags,
26 int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size);
27 ssize_t inet_sendpage(struct socket *sock, struct page *page, int offset,
29 int inet_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
31 int inet_shutdown(struct socket *sock, int how);
[all …]
Dudp_tunnel.h40 struct socket **sockp);
44 struct socket **sockp);
47 struct socket **sockp) in udp_sock_create6()
55 struct socket **sockp) in udp_sock_create()
85 void setup_udp_tunnel_sock(struct net *net, struct socket *sock,
117 void udp_tunnel_push_rx_port(struct net_device *dev, struct socket *sock,
119 void udp_tunnel_drop_rx_port(struct net_device *dev, struct socket *sock,
121 void udp_tunnel_notify_add_rx_port(struct socket *sock, unsigned short type);
122 void udp_tunnel_notify_del_rx_port(struct socket *sock, unsigned short type);
151 void udp_tunnel_sock_release(struct socket *sock);
[all …]
Dscm.h42 int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm);
47 static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm) in unix_get_peersec_dgram()
52 static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm) in unix_get_peersec_dgram()
78 static __inline__ int scm_send(struct socket *sock, struct msghdr *msg, in scm_send()
93 static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) in scm_passec()
109 static inline bool scm_has_secdata(struct socket *sock) in scm_has_secdata()
114 static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) in scm_passec()
117 static inline bool scm_has_secdata(struct socket *sock) in scm_has_secdata()
123 static __inline__ void scm_recv(struct socket *sock, struct msghdr *msg, in scm_recv()
Dsock.h495 struct socket *sk_socket;
1380 struct socket socket; member
1384 static inline struct socket *SOCKET_I(struct inode *inode) in SOCKET_I()
1386 return &container_of(inode, struct socket_alloc, vfs_inode)->socket; in SOCKET_I()
1389 static inline struct inode *SOCK_INODE(struct socket *socket) in SOCK_INODE() argument
1391 return &container_of(socket, struct socket_alloc, socket)->vfs_inode; in SOCK_INODE()
1633 int sock_setsockopt(struct socket *sock, int level, int op,
1636 int sock_getsockopt(struct socket *sock, int level, int op,
1669 int sock_no_bind(struct socket *, struct sockaddr *, int);
1670 int sock_no_connect(struct socket *, struct sockaddr *, int, int);
[all …]
/linux-4.19.296/drivers/xen/
Dpvcalls-front.h6 int pvcalls_front_socket(struct socket *sock);
7 int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr,
9 int pvcalls_front_bind(struct socket *sock,
12 int pvcalls_front_listen(struct socket *sock, int backlog);
13 int pvcalls_front_accept(struct socket *sock,
14 struct socket *newsock,
16 int pvcalls_front_sendmsg(struct socket *sock,
19 int pvcalls_front_recvmsg(struct socket *sock,
24 struct socket *sock,
26 int pvcalls_front_release(struct socket *sock);
Dpvcalls-front.c68 struct socket *sock;
108 static inline struct sock_mapping *pvcalls_enter_sock(struct socket *sock) in pvcalls_enter_sock()
125 static inline void pvcalls_exit_sock(struct socket *sock) in pvcalls_exit_sock()
269 int pvcalls_front_socket(struct socket *sock) in pvcalls_front_socket()
321 req->u.socket.id = (uintptr_t) map; in pvcalls_front_socket()
322 req->u.socket.domain = AF_INET; in pvcalls_front_socket()
323 req->u.socket.type = SOCK_STREAM; in pvcalls_front_socket()
324 req->u.socket.protocol = IPPROTO_IP; in pvcalls_front_socket()
421 int pvcalls_front_connect(struct socket *sock, struct sockaddr *addr, in pvcalls_front_connect()
540 int pvcalls_front_sendmsg(struct socket *sock, struct msghdr *msg, in pvcalls_front_sendmsg()
[all …]
/linux-4.19.296/fs/afs/
Drxrpc.c43 struct socket *socket; in afs_open_socket() local
49 ret = sock_create_kern(net->net, AF_RXRPC, SOCK_DGRAM, PF_INET6, &socket); in afs_open_socket()
53 socket->sk->sk_allocation = GFP_NOFS; in afs_open_socket()
65 ret = kernel_setsockopt(socket, SOL_RXRPC, RXRPC_MIN_SECURITY_LEVEL, in afs_open_socket()
70 ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx)); in afs_open_socket()
73 ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx)); in afs_open_socket()
78 rxrpc_kernel_new_call_notification(socket, afs_rx_new_call, in afs_open_socket()
81 ret = kernel_listen(socket, INT_MAX); in afs_open_socket()
85 net->socket = socket; in afs_open_socket()
91 sock_release(socket); in afs_open_socket()
[all …]
/linux-4.19.296/crypto/
Dalgif_hash.c68 static int hash_sendmsg(struct socket *sock, struct msghdr *msg, in hash_sendmsg()
136 static ssize_t hash_sendpage(struct socket *sock, struct page *page, in hash_sendpage()
188 static int hash_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, in hash_recvmsg()
235 static int hash_accept(struct socket *sock, struct socket *newsock, int flags, in hash_accept()
299 static int hash_check_key(struct socket *sock) in hash_check_key()
334 static int hash_sendmsg_nokey(struct socket *sock, struct msghdr *msg, in hash_sendmsg_nokey()
346 static ssize_t hash_sendpage_nokey(struct socket *sock, struct page *page, in hash_sendpage_nokey()
358 static int hash_recvmsg_nokey(struct socket *sock, struct msghdr *msg, in hash_recvmsg_nokey()
370 static int hash_accept_nokey(struct socket *sock, struct socket *newsock, in hash_accept_nokey()
Dalgif_skcipher.c41 static int skcipher_sendmsg(struct socket *sock, struct msghdr *msg, in skcipher_sendmsg()
54 static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg, in _skcipher_recvmsg()
153 static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg()
208 static int skcipher_check_key(struct socket *sock) in skcipher_check_key()
243 static int skcipher_sendmsg_nokey(struct socket *sock, struct msghdr *msg, in skcipher_sendmsg_nokey()
255 static ssize_t skcipher_sendpage_nokey(struct socket *sock, struct page *page, in skcipher_sendpage_nokey()
267 static int skcipher_recvmsg_nokey(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg_nokey()
Dalgif_aead.c65 static int aead_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) in aead_sendmsg()
92 static int _aead_recvmsg(struct socket *sock, struct msghdr *msg, in _aead_recvmsg()
327 static int aead_recvmsg(struct socket *sock, struct msghdr *msg, in aead_recvmsg()
382 static int aead_check_key(struct socket *sock) in aead_check_key()
417 static int aead_sendmsg_nokey(struct socket *sock, struct msghdr *msg, in aead_sendmsg_nokey()
429 static ssize_t aead_sendpage_nokey(struct socket *sock, struct page *page, in aead_sendpage_nokey()
441 static int aead_recvmsg_nokey(struct socket *sock, struct msghdr *msg, in aead_recvmsg_nokey()
/linux-4.19.296/include/crypto/
Dif_alg.h166 int af_alg_release(struct socket *sock);
168 int af_alg_accept(struct sock *sk, struct socket *newsock, bool kern);
242 int af_alg_sendmsg(struct socket *sock, struct msghdr *msg, size_t size,
244 ssize_t af_alg_sendpage(struct socket *sock, struct page *page,
248 __poll_t af_alg_poll(struct file *file, struct socket *sock,
/linux-4.19.296/include/trace/events/
Dsunrpc.h308 struct socket *socket
311 TP_ARGS(xprt, socket),
324 struct inode *inode = SOCK_INODE(socket);
325 __entry->socket_state = socket->state;
326 __entry->sock_state = socket->sk->sk_state;
348 struct socket *socket \
350 TP_ARGS(xprt, socket))
356 struct socket *socket,
360 TP_ARGS(xprt, socket, error),
374 struct inode *inode = SOCK_INODE(socket);
[all …]
/linux-4.19.296/drivers/isdn/mISDN/
Dl1oip_core.c283 struct socket *socket = NULL; in l1oip_socket_send() local
338 if (!hc->socket) { in l1oip_socket_send()
343 socket = hc->socket; in l1oip_socket_send()
344 hc->socket = NULL; in l1oip_socket_send()
352 len = kernel_sendmsg(socket, &hc->sendmsg, &hc->sendiov, 1, len); in l1oip_socket_send()
354 hc->socket = socket; /* no locking required */ in l1oip_socket_send()
657 struct socket *socket = NULL; in l1oip_socket_thread() local
675 if (sock_create(PF_INET, SOCK_DGRAM, IPPROTO_UDP, &socket)) { in l1oip_socket_thread()
692 if (socket->ops->bind(socket, (struct sockaddr *)&hc->sin_local, in l1oip_socket_thread()
701 if (socket->sk == NULL) { in l1oip_socket_thread()
[all …]
Dsocket.c115 mISDN_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, in mISDN_sock_recvmsg()
176 mISDN_sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) in mISDN_sock_sendmsg()
246 data_sock_release(struct socket *sock) in data_sock_release()
360 data_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in data_sock_ioctl()
413 static int data_sock_setsockopt(struct socket *sock, int level, int optname, in data_sock_setsockopt()
445 static int data_sock_getsockopt(struct socket *sock, int level, int optname, in data_sock_getsockopt()
475 data_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) in data_sock_bind()
562 data_sock_getname(struct socket *sock, struct sockaddr *addr, in data_sock_getname()
603 data_sock_create(struct net *net, struct socket *sock, int protocol, int kern) in data_sock_create()
628 base_sock_release(struct socket *sock) in base_sock_release()
[all …]
Dl1oip.h71 struct socket *socket; /* if set, socket is created */ member
/linux-4.19.296/include/pcmcia/
Dss.h135 socket_state_t socket; member
258 extern void pcmcia_parse_events(struct pcmcia_socket *socket,
262 extern int pcmcia_register_socket(struct pcmcia_socket *socket);
263 extern void pcmcia_unregister_socket(struct pcmcia_socket *socket);
/linux-4.19.296/include/net/bluetooth/
Dbluetooth.h270 int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
272 int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg,
274 __poll_t bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait);
275 int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
281 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock);
/linux-4.19.296/include/xen/interface/io/
Dpvcalls.h46 } socket; member
93 } socket; member

123