Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/sockbuf.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
#include <sys/_task.h> | #include <sys/_task.h> | ||||
#define SB_MAX (2*1024*1024) /* default for max chars in sockbuf */ | #define SB_MAX (2*1024*1024) /* default for max chars in sockbuf */ | ||||
struct ktls_session; | struct ktls_session; | ||||
struct mbuf; | struct mbuf; | ||||
struct sockaddr; | struct sockaddr; | ||||
struct socket; | struct socket; | ||||
struct sockopt; | |||||
struct thread; | struct thread; | ||||
struct selinfo; | struct selinfo; | ||||
/* | /* | ||||
* Socket buffer | * Socket buffer | ||||
* | * | ||||
* A buffer starts with the fields that are accessed by I/O multiplexing | * A buffer starts with the fields that are accessed by I/O multiplexing | ||||
* APIs like select(2), kevent(2) or AIO and thus are shared between different | * APIs like select(2), kevent(2) or AIO and thus are shared between different | ||||
▲ Show 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | |||||
struct mbuf * | struct mbuf * | ||||
sbcut_locked(struct sockbuf *sb, int len); | sbcut_locked(struct sockbuf *sb, int len); | ||||
void sbdroprecord(struct sockbuf *sb); | void sbdroprecord(struct sockbuf *sb); | ||||
void sbdroprecord_locked(struct sockbuf *sb); | void sbdroprecord_locked(struct sockbuf *sb); | ||||
void sbflush(struct sockbuf *sb); | void sbflush(struct sockbuf *sb); | ||||
void sbflush_locked(struct sockbuf *sb); | void sbflush_locked(struct sockbuf *sb); | ||||
void sbrelease(struct socket *, sb_which); | void sbrelease(struct socket *, sb_which); | ||||
void sbrelease_locked(struct socket *, sb_which); | void sbrelease_locked(struct socket *, sb_which); | ||||
int sbsetopt(struct socket *so, int cmd, u_long cc); | int sbsetopt(struct socket *so, struct sockopt *); | ||||
bool sbreserve_locked(struct socket *so, sb_which which, u_long cc, | bool sbreserve_locked(struct socket *so, sb_which which, u_long cc, | ||||
struct thread *td); | struct thread *td); | ||||
void sbsndptr_adv(struct sockbuf *sb, struct mbuf *mb, u_int len); | void sbsndptr_adv(struct sockbuf *sb, struct mbuf *mb, u_int len); | ||||
struct mbuf * | struct mbuf * | ||||
sbsndptr_noadv(struct sockbuf *sb, u_int off, u_int *moff); | sbsndptr_noadv(struct sockbuf *sb, u_int off, u_int *moff); | ||||
struct mbuf * | struct mbuf * | ||||
sbsndmbuf(struct sockbuf *sb, u_int off, u_int *moff); | sbsndmbuf(struct sockbuf *sb, u_int off, u_int *moff); | ||||
int sbwait(struct socket *, sb_which); | int sbwait(struct socket *, sb_which); | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |