Lines Matching refs:socket
105 struct socket { struct
130 int (*release) (struct socket *sock); argument
131 int (*bind) (struct socket *sock,
134 int (*connect) (struct socket *sock,
137 int (*socketpair)(struct socket *sock1,
138 struct socket *sock2);
139 int (*accept) (struct socket *sock,
140 struct socket *newsock, int flags);
141 int (*getname) (struct socket *sock,
144 unsigned int (*poll) (struct file *file, struct socket *sock,
146 int (*ioctl) (struct socket *sock, unsigned int cmd,
149 int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
152 int (*listen) (struct socket *sock, int len);
153 int (*shutdown) (struct socket *sock, int flags);
154 int (*setsockopt)(struct socket *sock, int level,
156 int (*getsockopt)(struct socket *sock, int level,
159 int (*compat_setsockopt)(struct socket *sock, int level,
161 int (*compat_getsockopt)(struct socket *sock, int level,
164 int (*sendmsg) (struct socket *sock, struct msghdr *m,
174 int (*recvmsg) (struct socket *sock, struct msghdr *m,
176 int (*mmap) (struct file *file, struct socket *sock,
178 ssize_t (*sendpage) (struct socket *sock, struct page *page,
180 ssize_t (*splice_read)(struct socket *sock, loff_t *ppos,
190 int (*create)(struct net *net, struct socket *sock,
205 int sock_wake_async(struct socket *sk, int how, int band);
209 struct socket **res, int kern);
210 int sock_create(int family, int type, int proto, struct socket **res);
211 int sock_create_kern(int family, int type, int proto, struct socket **res);
212 int sock_create_lite(int family, int type, int proto, struct socket **res);
213 void sock_release(struct socket *sock);
214 int sock_sendmsg(struct socket *sock, struct msghdr *msg);
215 int sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
217 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname);
218 struct socket *sockfd_lookup(int fd, int *err);
219 struct socket *sock_from_file(struct file *file, int *err);
263 int kernel_sendmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
265 int kernel_recvmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
268 int kernel_bind(struct socket *sock, struct sockaddr *addr, int addrlen);
269 int kernel_listen(struct socket *sock, int backlog);
270 int kernel_accept(struct socket *sock, struct socket **newsock, int flags);
271 int kernel_connect(struct socket *sock, struct sockaddr *addr, int addrlen,
273 int kernel_getsockname(struct socket *sock, struct sockaddr *addr,
275 int kernel_getpeername(struct socket *sock, struct sockaddr *addr,
277 int kernel_getsockopt(struct socket *sock, int level, int optname, char *optval,
279 int kernel_setsockopt(struct socket *sock, int level, int optname, char *optval,
281 int kernel_sendpage(struct socket *sock, struct page *page, int offset,
283 int kernel_sock_ioctl(struct socket *sock, int cmd, unsigned long arg);
284 int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how);