Lines Matching refs:socket

51  * @SOCK_STREAM: stream (connection) socket
52 * @SOCK_DGRAM: datagram (conn.less) socket
53 * @SOCK_RAW: raw socket
55 * @SOCK_SEQPACKET: sequential packet socket
56 * @SOCK_DCCP: Datagram Congestion Control Protocol socket
60 * When adding some new socket type please
61 * grep ARCH_HAS_SOCKET_TYPE include/asm-* /socket.h, at least MIPS
79 /* Flags for socket, socketpair, accept4 */
108 * struct socket - general BSD socket
109 * @state: socket state (%SS_CONNECTED, etc)
110 * @type: socket type (%SOCK_STREAM, etc)
111 * @flags: socket flags (%SOCK_NOSPACE, etc)
112 * @ops: protocol specific socket operations
114 * @sk: internal networking protocol agnostic socket representation
117 struct socket {
164 int (*release) (struct socket *sock);
165 int (*bind) (struct socket *sock,
168 int (*connect) (struct socket *sock,
171 int (*socketpair)(struct socket *sock1,
172 struct socket *sock2);
173 int (*accept) (struct socket *sock,
174 struct socket *newsock, int flags, bool kern);
175 int (*getname) (struct socket *sock,
178 __poll_t (*poll) (struct file *file, struct socket *sock,
180 int (*ioctl) (struct socket *sock, unsigned int cmd,
183 int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
186 int (*gettstamp) (struct socket *sock, void __user *userstamp,
188 int (*listen) (struct socket *sock, int len);
189 int (*shutdown) (struct socket *sock, int flags);
190 int (*setsockopt)(struct socket *sock, int level,
193 int (*getsockopt)(struct socket *sock, int level,
195 void (*show_fdinfo)(struct seq_file *m, struct socket *sock);
196 int (*sendmsg) (struct socket *sock, struct msghdr *m,
206 int (*recvmsg) (struct socket *sock, struct msghdr *m,
208 int (*mmap) (struct file *file, struct socket *sock,
210 ssize_t (*splice_read)(struct socket *sock, loff_t *ppos,
212 void (*splice_eof)(struct socket *sock);
214 int (*peek_len)(struct socket *sock);
233 int (*create)(struct net *net, struct socket *sock,
253 struct socket **res, int kern);
254 int sock_create(int family, int type, int proto, struct socket **res);
255 int sock_create_kern(struct net *net, int family, int type, int proto, struct socket **res);
256 int sock_create_lite(int family, int type, int proto, struct socket **res);
257 struct socket *sock_alloc(void);
258 void sock_release(struct socket *sock);
259 int sock_sendmsg(struct socket *sock, struct msghdr *msg);
260 int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags);
261 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname);
262 struct socket *sockfd_lookup(int fd, int *err);
263 struct socket *sock_from_file(struct file *file);
323 int kernel_sendmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
327 int kernel_recvmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec,
330 int kernel_bind(struct socket *sock, struct sockaddr *addr, int addrlen);
331 int kernel_listen(struct socket *sock, int backlog);
332 int kernel_accept(struct socket *sock, struct socket **newsock, int flags);
333 int kernel_connect(struct socket *sock, struct sockaddr *addr, int addrlen,
335 int kernel_getsockname(struct socket *sock, struct sockaddr *addr);
336 int kernel_getpeername(struct socket *sock, struct sockaddr *addr);
337 int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how);
339 /* Routine returns the IP overhead imposed by a (caller-protected) socket. */