Lines Matching defs:socket

52  * Kernel structure per socket.
59 struct socket;
62 * Locking key to struct socket:
72 struct socket {
74 short so_type; /* (a) generic type, see socket.h */
75 short so_options; /* from socket call, see socket.h */
85 * If so_head is 0, socket is not related to an accept.
86 * For head socket so_incomp queues partially completed connections,
91 * and limit on number of queued connections for this socket.
93 struct socket *so_head; /* (e) back pointer to listen socket */
94 TAILQ_HEAD(, socket) so_incomp; /* (e) queue of partial unaccepted connections */
95 TAILQ_HEAD(, socket) so_comp; /* (e) queue of complete unaccepted connections */
96 TAILQ_ENTRY(socket) so_list; /* (e) list of unaccepted connections */
106 TAILQ_HEAD(, aiocblist) so_aiojobq; /* AIO ops waiting on socket */
111 struct label *so_label; /* (b) MAC label for socket */
123 * some user-specified metadata to a socket, which then can be
127 int so_fibnum; /* routing domain for this socket */
144 * Per-socket mutex: we reuse the receive socket buffer mutex for space
146 * locking for the socket code.
161 * Externalized form of struct socket used by the sysctl(3) interface.
165 struct socket *xso_so; /* makes a convenient handle sometimes */
187 * Macros for sockets and socket buffering.
203 /* do we have to send all at once on a socket? */
223 * soref()/sorele() ref-count the socket structure. Note that you must
224 * still explicitly close the socket, but the last ref count will free
246 * In sorwakeup() and sowwakeup(), acquire the socket buffer lock to
282 (struct socket *so, void *arg, int waitflag);
284 (struct socket *so, char *arg);
286 (struct socket *so);
307 /* 'which' values for socket upcalls. */
311 /* Return values for socket upcalls. */
322 void soabort(struct socket *so);
323 int soaccept(struct socket *so, struct sockaddr **nam);
324 int socheckuid(struct socket *so, uid_t uid);
325 int sobind(struct socket *so, struct sockaddr *nam, struct thread *td);
326 int sobindat(int fd, struct socket *so, struct sockaddr *nam,
328 int soclose(struct socket *so);
329 int soconnect(struct socket *so, struct sockaddr *nam, struct thread *td);
330 int soconnectat(int fd, struct socket *so, struct sockaddr *nam,
332 int soconnect2(struct socket *so1, struct socket *so2);
333 int socreate(int dom, struct socket **aso, int type, int proto,
335 int sodisconnect(struct socket *so);
337 void sofree(struct socket *so);
338 void sohasoutofband(struct socket *so);
339 int solisten(struct socket *so, int backlog, struct thread *td);
340 void solisten_proto(struct socket *so, int backlog);
341 int solisten_proto_check(struct socket *so);
342 struct socket *
343 sonewconn(struct socket *head, int connstatus);
346 int sopoll(struct socket *so, int events, struct ucred *active_cred,
348 int sopoll_generic(struct socket *so, int events,
350 int soreceive(struct socket *so, struct sockaddr **paddr, struct uio *uio,
352 int soreceive_stream(struct socket *so, struct sockaddr **paddr,
355 int soreceive_dgram(struct socket *so, struct sockaddr **paddr,
358 int soreceive_generic(struct socket *so, struct sockaddr **paddr,
361 int soreserve(struct socket *so, u_long sndcc, u_long rcvcc);
362 void sorflush(struct socket *so);
363 int sosend(struct socket *so, struct sockaddr *addr, struct uio *uio,
366 int sosend_dgram(struct socket *so, struct sockaddr *addr,
369 int sosend_generic(struct socket *so, struct sockaddr *addr,
372 int soshutdown(struct socket *so, int how);
373 void sotoxsocket(struct socket *so, struct xsocket *xso);
374 void soupcall_clear(struct socket *so, int which);
375 void soupcall_set(struct socket *so, int which,
376 int (*func)(struct socket *, void *, int), void *arg);
377 void sowakeup(struct socket *so, struct sockbuf *sb);
378 int selsocket(struct socket *so, int events, struct timeval *tv,