Lines Matching full:socket
3 * operating system. INET is implemented using the BSD Socket
6 * Definitions for the AF_INET socket handler.
21 * a socket is reset and must stay shut up
25 * David S. Miller : New socket lookup architecture.
32 * Pedro Hortas : New flags field for socket options
103 /* This is the per-socket lock. The spinlock provides a synchronization
139 * @skc_net: reference to the network namespace of this socket
218 * @sk_backlog: always used with the per-socket spinlock held
230 * @sk_cgrp_prioidx: socket group's priority map index
231 * @sk_type: socket type (%SOCK_STREAM, etc)
232 * @sk_protocol: which protocol this socket belongs in this network family
233 * @sk_peer_pid: &struct pid for this socket's peer
239 * @sk_filter: socket filtering instructions
250 * @sk_classid: this socket's cgroup classid
251 * @sk_cgrp: this socket's cgroup-specific proto data
252 * @sk_write_pending: a write to stream socket waits to start
285 * the per-socket spinlock held and requires low latency
355 struct socket *sk_socket;
454 /* Grab socket reference count. This operation is valid only
465 /* Ungrab socket in the context, which assumes that socket refcnt
677 /* The per-socket spinlock must be held here. */
763 * socket layer -> transport layer interface
910 printk(KERN_DEBUG "%s socket %p released, %d are still alive\n", in sk_refcnt_debug_dec()
917 printk(KERN_DEBUG "Destruction of the %s socket %p delayed, refcnt=%d\n", in sk_refcnt_debug_release()
1165 /* sock_iocb: used to kick off async processing of socket ios */
1171 struct socket *sock;
1189 struct socket socket; member
1193 static inline struct socket *SOCKET_I(struct inode *inode) in SOCKET_I()
1195 return &container_of(inode, struct socket_alloc, vfs_inode)->socket; in SOCKET_I()
1198 static inline struct inode *SOCK_INODE(struct socket *socket) in SOCK_INODE() argument
1200 return &container_of(socket, struct socket_alloc, socket)->vfs_inode; in SOCK_INODE()
1279 /* Used by processes to "lock" a socket state, so that
1283 * packets that change the state of the socket.
1287 * owner of the socket lock right before it is released.
1332 * @sk: socket
1335 * fast unlock socket for user context.
1364 extern int sock_setsockopt(struct socket *sock, int level,
1368 extern int sock_getsockopt(struct socket *sock, int level,
1397 extern int sock_no_bind(struct socket *,
1399 extern int sock_no_connect(struct socket *,
1401 extern int sock_no_socketpair(struct socket *,
1402 struct socket *);
1403 extern int sock_no_accept(struct socket *,
1404 struct socket *, int);
1405 extern int sock_no_getname(struct socket *,
1407 extern unsigned int sock_no_poll(struct file *, struct socket *,
1409 extern int sock_no_ioctl(struct socket *, unsigned int,
1411 extern int sock_no_listen(struct socket *, int);
1412 extern int sock_no_shutdown(struct socket *, int);
1413 extern int sock_no_getsockopt(struct socket *, int , int,
1415 extern int sock_no_setsockopt(struct socket *, int, int,
1417 extern int sock_no_sendmsg(struct kiocb *, struct socket *,
1419 extern int sock_no_recvmsg(struct kiocb *, struct socket *,
1422 struct socket *sock,
1424 extern ssize_t sock_no_sendpage(struct socket *sock,
1433 extern int sock_common_getsockopt(struct socket *sock, int level, int optname,
1435 extern int sock_common_recvmsg(struct kiocb *iocb, struct socket *sock,
1437 extern int sock_common_setsockopt(struct socket *sock, int level, int optname,
1439 extern int compat_sock_common_getsockopt(struct socket *sock, int level,
1441 extern int compat_sock_common_setsockopt(struct socket *sock, int level,
1447 * Default socket callbacks and setup code
1450 /* Initialise core socket variables */
1451 extern void sock_init_data(struct socket *sock, struct sock *sk);
1456 * sk_filter_release - release a socket filter
1459 * Remove a filter from a socket and release its resources.
1483 * Socket reference counting postulates.
1485 * * Each user of socket SHOULD hold a reference count.
1486 * * Each access point to socket (an hash table bucket, reference from a list,
1490 * outside exist to this socket and current process on current CPU
1491 * is last user and may/should destroy this socket.
1493 * it is called, socket has no references from outside -> sk_free
1494 * may release descendant resources allocated by the socket, but
1495 * to the time when it is called, socket is NOT referenced by any
1500 * socket is looked up by one cpu and unhasing is made by another CPU.
1502 * (leak to backlog). Packet socket does all the processing inside
1507 /* Ungrab socket and destroy it, if it was the last reference. */
1532 static inline void sk_set_socket(struct sock *sk, struct socket *sock) in sk_set_socket()
1543 /* Detach socket from process context.
1544 * Announce socket dead, detach it from wait queue and inode.
1548 * to work with this socket (TCP).
1559 static inline void sock_graft(struct sock *sk, struct socket *parent) in sock_graft()
1740 * @sk: socket
1751 * @sk: socket
1762 * @sk: socket
1764 * Returns true if socket has write or read allocations
1800 * data on the socket.
1819 * @wait_address: socket wait queue
1831 * socket flags modification. in sock_poll_wait()
1967 /* Alas, with timeout socket operations are not restartable.
2032 * @sk: socket sending this packet
2042 * @sk: socket to eat this skb from
2043 * @skb: socket buffer to eat
2046 * This routine must be called with interrupts disabled or with the socket