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:
dg 2002-08-13 19:03:19 +00:00
parent 3a04055091
commit 6dce2e7eff
3 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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);

View File

@ -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);