Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/socketvar.h
Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Lines | |||||
#define SBL_VALID (SBL_WAIT | SBL_NOINTR) | #define SBL_VALID (SBL_WAIT | SBL_NOINTR) | ||||
#define SBLOCKWAIT(f) (((f) & MSG_DONTWAIT) ? 0 : SBL_WAIT) | #define SBLOCKWAIT(f) (((f) & MSG_DONTWAIT) ? 0 : SBL_WAIT) | ||||
#define SOCK_IO_SEND_LOCK(so, flags) \ | #define SOCK_IO_SEND_LOCK(so, flags) \ | ||||
soiolock((so), &(so)->so_snd_sx, (flags)) | soiolock((so), &(so)->so_snd_sx, (flags)) | ||||
#define SOCK_IO_SEND_UNLOCK(so) \ | #define SOCK_IO_SEND_UNLOCK(so) \ | ||||
soiounlock(&(so)->so_snd_sx) | soiounlock(&(so)->so_snd_sx) | ||||
#define SOCK_IO_SEND_OWNED(so) sx_xlocked(&(so)->so_snd_sx) | |||||
#define SOCK_IO_RECV_LOCK(so, flags) \ | #define SOCK_IO_RECV_LOCK(so, flags) \ | ||||
soiolock((so), &(so)->so_rcv_sx, (flags)) | soiolock((so), &(so)->so_rcv_sx, (flags)) | ||||
#define SOCK_IO_RECV_UNLOCK(so) \ | #define SOCK_IO_RECV_UNLOCK(so) \ | ||||
soiounlock(&(so)->so_rcv_sx) | soiounlock(&(so)->so_rcv_sx) | ||||
#define SOCK_IO_RECV_OWNED(so) sx_xlocked(&(so)->so_rcv_sx) | |||||
/* | /* | ||||
* Do we need to notify the other side when I/O is possible? | * Do we need to notify the other side when I/O is possible? | ||||
*/ | */ | ||||
#define sb_notify(sb) (((sb)->sb_flags & (SB_WAIT | SB_SEL | SB_ASYNC | \ | #define sb_notify(sb) (((sb)->sb_flags & (SB_WAIT | SB_SEL | SB_ASYNC | \ | ||||
SB_UPCALL | SB_AIO | SB_KNOTE)) != 0) | SB_UPCALL | SB_AIO | SB_KNOTE)) != 0) | ||||
/* do we have to send all at once on a socket? */ | /* do we have to send all at once on a socket? */ | ||||
▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines |