From 6dce2e7eff44abde5af8dc5ee18ca69ee0a491b1 Mon Sep 17 00:00:00 2001 From: dg Date: Tue, 13 Aug 2002 19:03:19 +0000 Subject: [PATCH] Moved sf_buf_alloc and sf_buf_free function declarations to sys/socketvar.h so that they can be seen by external callers. --- sys/kern/uipc_cow.c | 2 -- sys/kern/uipc_syscalls.c | 2 -- sys/sys/socketvar.h | 3 +++ 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/kern/uipc_cow.c b/sys/kern/uipc_cow.c index f909e7853c60..14231a253e0b 100644 --- a/sys/kern/uipc_cow.c +++ b/sys/kern/uipc_cow.c @@ -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 diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 793e9587f504..bcc065d2259f 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -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); diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index 86c85f7b71f9..81d7f4549f7b 100644 --- a/sys/sys/socketvar.h +++ b/sys/sys/socketvar.h @@ -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);