Moved sf_buf_alloc and sf_buf_free function declarations to sys/socketvar.h
so that they can be seen by external callers.
This commit is contained in:
parent
3a04055091
commit
6dce2e7eff
@ -80,8 +80,6 @@ static struct netsend_cow_stats socow_stats = {0,0,0,0,0,0,0,0,0,0,0};
|
||||
extern struct sf_buf *sf_bufs;
|
||||
extern vm_offset_t sf_base;
|
||||
#define dtosf(x) (&sf_bufs[((uintptr_t)(x) - (uintptr_t)sf_base) >> PAGE_SHIFT])
|
||||
void sf_buf_free(caddr_t addr, void *args);
|
||||
struct sf_buf *sf_buf_alloc(void);
|
||||
static void socow_iodone(void *addr, void *args);
|
||||
|
||||
static void
|
||||
|
@ -76,8 +76,6 @@
|
||||
|
||||
static void sf_buf_init(void *arg);
|
||||
SYSINIT(sock_sf, SI_SUB_MBUF, SI_ORDER_ANY, sf_buf_init, NULL)
|
||||
struct sf_buf *sf_buf_alloc(void);
|
||||
void sf_buf_free(void *addr, void *args);
|
||||
|
||||
static int sendit(struct thread *td, int s, struct msghdr *mp, int flags);
|
||||
static int recvit(struct thread *td, int s, struct msghdr *mp, void *namelenp);
|
||||
|
@ -382,6 +382,9 @@ int sbreserve(struct sockbuf *sb, u_long cc, struct socket *so,
|
||||
struct thread *td);
|
||||
void sbtoxsockbuf(struct sockbuf *sb, struct xsockbuf *xsb);
|
||||
int sbwait(struct sockbuf *sb);
|
||||
struct sf_buf *
|
||||
sf_buf_alloc(void);
|
||||
void sf_buf_free(void *addr, void *args);
|
||||
int sb_lock(struct sockbuf *sb);
|
||||
int soabort(struct socket *so);
|
||||
int soaccept(struct socket *so, struct sockaddr **nam);
|
||||
|
Loading…
Reference in New Issue
Block a user