Lines Matching defs:socket

53  * Kernel structure per socket.
60 struct socket;
63 * 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 */
110 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 */
149 * Per-socket mutex: we reuse the receive socket buffer mutex for space
151 * locking for the socket code.
166 * Externalized form of struct socket used by the sysctl(3) interface.
170 struct socket *xso_so; /* makes a convenient handle sometimes */
192 * Macros for sockets and socket buffering.
208 /* do we have to send all at once on a socket? */
228 * soref()/sorele() ref-count the socket structure. Note that you must
229 * still explicitly close the socket, but the last ref count will free
251 * In sorwakeup() and sowwakeup(), acquire the socket buffer lock to
287 (struct socket *so, void *arg, int waitflag);
289 (struct socket *so, char *arg);
291 (struct socket *so);
315 struct socket *so;
333 /* 'which' values for socket upcalls. */
337 /* Return values for socket upcalls. */
347 void soabort(struct socket *so);
348 int soaccept(struct socket *so, struct sockaddr **nam);
352 int socheckuid(struct socket *so, uid_t uid);
353 int sobind(struct socket *so, struct sockaddr *nam, struct thread *td);
354 int sobindat(int fd, struct socket *so, struct sockaddr *nam,
356 int soclose(struct socket *so);
357 int soconnect(struct socket *so, struct sockaddr *nam, struct thread *td);
358 int soconnectat(int fd, struct socket *so, struct sockaddr *nam,
360 int soconnect2(struct socket *so1, struct socket *so2);
361 int socreate(int dom, struct socket **aso, int type, int proto,
363 int sodisconnect(struct socket *so);
365 void sofree(struct socket *so);
366 void sohasoutofband(struct socket *so);
367 int solisten(struct socket *so, int backlog, struct thread *td);
368 void solisten_proto(struct socket *so, int backlog);
369 int solisten_proto_check(struct socket *so);
370 struct socket *
371 sonewconn(struct socket *head, int connstatus);
374 int sopoll(struct socket *so, int events, struct ucred *active_cred,
376 int sopoll_generic(struct socket *so, int events,
378 int soreceive(struct socket *so, struct sockaddr **paddr, struct uio *uio,
380 int soreceive_stream(struct socket *so, struct sockaddr **paddr,
383 int soreceive_dgram(struct socket *so, struct sockaddr **paddr,
386 int soreceive_generic(struct socket *so, struct sockaddr **paddr,
389 int soreserve(struct socket *so, u_long sndcc, u_long rcvcc);
390 void sorflush(struct socket *so);
391 int sosend(struct socket *so, struct sockaddr *addr, struct uio *uio,
394 int sosend_dgram(struct socket *so, struct sockaddr *addr,
397 int sosend_generic(struct socket *so, struct sockaddr *addr,
400 int soshutdown(struct socket *so, int how);
401 void sotoxsocket(struct socket *so, struct xsocket *xso);
402 void soupcall_clear(struct socket *so, int which);
403 void soupcall_set(struct socket *so, int which,
404 int (*func)(struct socket *, void *, int), void *arg);
405 void sowakeup(struct socket *so, struct sockbuf *sb);
406 void sowakeup_aio(struct socket *so, struct sockbuf *sb);
407 int selsocket(struct socket *so, int events, struct timeval *tv,