Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/socketvar.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
* Kernel structure per socket. | * Kernel structure per socket. | ||||
* Contains send and receive buffer queues, | * Contains send and receive buffer queues, | ||||
* handle on protocol and pointer to protocol | * handle on protocol and pointer to protocol | ||||
* private data and error information. | * private data and error information. | ||||
*/ | */ | ||||
typedef u_quad_t so_gen_t; | typedef u_quad_t so_gen_t; | ||||
struct socket; | struct socket; | ||||
struct aiocblist; | |||||
/*- | /*- | ||||
* Locking key to struct socket: | * Locking key to struct socket: | ||||
* (a) constant after allocation, no locking required. | * (a) constant after allocation, no locking required. | ||||
* (b) locked by SOCK_LOCK(so). | * (b) locked by SOCK_LOCK(so). | ||||
* (c) locked by SOCKBUF_LOCK(&so->so_rcv). | * (c) locked by SOCKBUF_LOCK(&so->so_rcv). | ||||
* (d) locked by SOCKBUF_LOCK(&so->so_snd). | * (d) locked by SOCKBUF_LOCK(&so->so_snd). | ||||
* (e) locked by ACCEPT_LOCK(). | * (e) locked by ACCEPT_LOCK(). | ||||
▲ Show 20 Lines • Show All 350 Lines • Show Last 20 Lines |