Lines Matching refs:socket
112 struct socket { struct
138 int (*release) (struct socket *sock); argument
139 int (*bind) (struct socket *sock,
142 int (*connect) (struct socket *sock,
145 int (*socketpair)(struct socket *sock1,
146 struct socket *sock2);
147 int (*accept) (struct socket *sock,
148 struct socket *newsock, int flags, bool kern);
149 int (*getname) (struct socket *sock,
152 __poll_t (*poll) (struct file *file, struct socket *sock,
154 int (*ioctl) (struct socket *sock, unsigned int cmd,
157 int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
160 int (*gettstamp) (struct socket *sock, void __user *userstamp,
162 int (*listen) (struct socket *sock, int len);
163 int (*shutdown) (struct socket *sock, int flags);
164 int (*setsockopt)(struct socket *sock, int level,
166 int (*getsockopt)(struct socket *sock, int level,
169 int (*compat_setsockopt)(struct socket *sock, int level,
171 int (*compat_getsockopt)(struct socket *sock, int level,
174 int (*sendmsg) (struct socket *sock, struct msghdr *m,
184 int (*recvmsg) (struct socket *sock, struct msghdr *m,
186 int (*mmap) (struct file *file, struct socket *sock,
188 ssize_t (*sendpage) (struct socket *sock, struct page *page,
190 ssize_t (*splice_read)(struct socket *sock, loff_t *ppos,
193 int (*peek_len)(struct socket *sock);
212 int (*create)(struct net *net, struct socket *sock,
232 struct socket **res, int kern);
233 int sock_create(int family, int type, int proto, struct socket **res);
234 int sock_create_kern(struct net *net, int family, int type, int proto, struct socket **res);
235 int sock_create_lite(int family, int type, int proto, struct socket **res);
236 struct socket *sock_alloc(void);
237 void sock_release(struct socket *sock);
238 int sock_sendmsg(struct socket *sock, struct msghdr *msg);
239 int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags);
240 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname);
241 struct socket *sockfd_lookup(int fd, int *err);
242 struct socket *sock_from_file(struct file *file, int *err);
291 int kernel_sendmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
295 int kernel_recvmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
298 int kernel_bind(struct socket *sock, struct sockaddr *addr, int addrlen);
299 int kernel_listen(struct socket *sock, int backlog);
300 int kernel_accept(struct socket *sock, struct socket **newsock, int flags);
301 int kernel_connect(struct socket *sock, struct sockaddr *addr, int addrlen,
303 int kernel_getsockname(struct socket *sock, struct sockaddr *addr);
304 int kernel_getpeername(struct socket *sock, struct sockaddr *addr);
305 int kernel_getsockopt(struct socket *sock, int level, int optname, char *optval,
307 int kernel_setsockopt(struct socket *sock, int level, int optname, char *optval,
309 int kernel_sendpage(struct socket *sock, struct page *page, int offset,
313 int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how);