Lines Matching refs:socket

110 struct socket {  struct
136 int (*release) (struct socket *sock); argument
137 int (*bind) (struct socket *sock,
140 int (*connect) (struct socket *sock,
143 int (*socketpair)(struct socket *sock1,
144 struct socket *sock2);
145 int (*accept) (struct socket *sock,
146 struct socket *newsock, int flags, bool kern);
147 int (*getname) (struct socket *sock,
150 __poll_t (*poll) (struct file *file, struct socket *sock,
152 int (*ioctl) (struct socket *sock, unsigned int cmd,
155 int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
158 int (*listen) (struct socket *sock, int len);
159 int (*shutdown) (struct socket *sock, int flags);
160 int (*setsockopt)(struct socket *sock, int level,
162 int (*getsockopt)(struct socket *sock, int level,
165 int (*compat_setsockopt)(struct socket *sock, int level,
167 int (*compat_getsockopt)(struct socket *sock, int level,
170 int (*sendmsg) (struct socket *sock, struct msghdr *m,
180 int (*recvmsg) (struct socket *sock, struct msghdr *m,
182 int (*mmap) (struct file *file, struct socket *sock,
184 ssize_t (*sendpage) (struct socket *sock, struct page *page,
186 ssize_t (*splice_read)(struct socket *sock, loff_t *ppos,
189 int (*peek_len)(struct socket *sock);
208 int (*create)(struct net *net, struct socket *sock,
228 struct socket **res, int kern);
229 int sock_create(int family, int type, int proto, struct socket **res);
230 int sock_create_kern(struct net *net, int family, int type, int proto, struct socket **res);
231 int sock_create_lite(int family, int type, int proto, struct socket **res);
232 struct socket *sock_alloc(void);
233 void sock_release(struct socket *sock);
234 int sock_sendmsg(struct socket *sock, struct msghdr *msg);
235 int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags);
236 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname);
237 struct socket *sockfd_lookup(int fd, int *err);
238 struct socket *sock_from_file(struct file *file, int *err);
287 int kernel_sendmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
291 int kernel_recvmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
294 int kernel_bind(struct socket *sock, struct sockaddr *addr, int addrlen);
295 int kernel_listen(struct socket *sock, int backlog);
296 int kernel_accept(struct socket *sock, struct socket **newsock, int flags);
297 int kernel_connect(struct socket *sock, struct sockaddr *addr, int addrlen,
299 int kernel_getsockname(struct socket *sock, struct sockaddr *addr);
300 int kernel_getpeername(struct socket *sock, struct sockaddr *addr);
301 int kernel_getsockopt(struct socket *sock, int level, int optname, char *optval,
303 int kernel_setsockopt(struct socket *sock, int level, int optname, char *optval,
305 int kernel_sendpage(struct socket *sock, struct page *page, int offset,
309 int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how);