Lines Matching refs:socket

51  * Kernel structure per socket.
58 struct socket;
61 * Locking key to struct socket:
71 struct socket {
73 short so_type; /* (a) generic type, see socket.h */
74 short so_options; /* from socket call, see socket.h */
84 * If so_head is 0, socket is not related to an accept.
85 * For head socket so_incomp queues partially completed connections,
90 * and limit on number of queued connections for this socket.
92 struct socket *so_head; /* (e) back pointer to listen socket */
93 TAILQ_HEAD(, socket) so_incomp; /* (e) queue of partial unaccepted connections */
94 TAILQ_HEAD(, socket) so_comp; /* (e) queue of complete unaccepted connections */
95 TAILQ_ENTRY(socket) so_list; /* (e) list of unaccepted connections */
105 TAILQ_HEAD(, aiocblist) so_aiojobq; /* AIO ops waiting on socket */
110 struct label *so_label; /* (b) MAC label for socket */
122 * some user-specified metadata to a socket, which then can be
126 int so_fibnum; /* routing domain for this socket */
143 * Per-socket mutex: we reuse the receive socket buffer mutex for space
145 * locking for the socket code.
160 * Externalized form of struct socket used by the sysctl(3) interface.
164 struct socket *xso_so; /* makes a convenient handle sometimes */
186 * Macros for sockets and socket buffering.
202 /* do we have to send all at once on a socket? */
222 * soref()/sorele() ref-count the socket structure. Note that you must
223 * still explicitly close the socket, but the last ref count will free
245 * In sorwakeup() and sowwakeup(), acquire the socket buffer lock to
281 (struct socket *so, void *arg, int waitflag);
283 (struct socket *so, char *arg);
285 (struct socket *so);
305 /* 'which' values for socket upcalls. */
309 /* Return values for socket upcalls. */
318 void soabort(struct socket *so);
319 int soaccept(struct socket *so, struct sockaddr **nam);
320 int socheckuid(struct socket *so, uid_t uid);
321 int sobind(struct socket *so, struct sockaddr *nam, struct thread *td);
322 int soclose(struct socket *so);
323 int soconnect(struct socket *so, struct sockaddr *nam, struct thread *td);
324 int soconnect2(struct socket *so1, struct socket *so2);
326 int socreate(int dom, struct socket **aso, int type, int proto,
328 int sodisconnect(struct socket *so);
330 void sofree(struct socket *so);
331 void sohasoutofband(struct socket *so);
332 int solisten(struct socket *so, int backlog, struct thread *td);
333 void solisten_proto(struct socket *so, int backlog);
334 int solisten_proto_check(struct socket *so);
335 struct socket *
336 sonewconn(struct socket *head, int connstatus);
339 int sopoll(struct socket *so, int events, struct ucred *active_cred,
341 int sopoll_generic(struct socket *so, int events,
343 int soreceive(struct socket *so, struct sockaddr **paddr, struct uio *uio,
345 int soreceive_stream(struct socket *so, struct sockaddr **paddr,
348 int soreceive_dgram(struct socket *so, struct sockaddr **paddr,
351 int soreceive_generic(struct socket *so, struct sockaddr **paddr,
354 int soreserve(struct socket *so, u_long sndcc, u_long rcvcc);
355 void sorflush(struct socket *so);
356 int sosend(struct socket *so, struct sockaddr *addr, struct uio *uio,
359 int sosend_dgram(struct socket *so, struct sockaddr *addr,
362 int sosend_generic(struct socket *so, struct sockaddr *addr,
365 int soshutdown(struct socket *so, int how);
366 void sotoxsocket(struct socket *so, struct xsocket *xso);
367 void soupcall_clear(struct socket *so, int which);
368 void soupcall_set(struct socket *so, int which,
369 int (*func)(struct socket *, void *, int), void *arg);
370 void sowakeup(struct socket *so, struct sockbuf *sb);
371 int selsocket(struct socket *so, int events, struct timeval *tv,