diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2006-06-10 14:34:07 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2006-06-10 14:34:07 +0000 |
commit | b37ffd3189ca080bbdc856da2a357a78c9e374f6 (patch) | |
tree | 65b5fe3647642c3e72f5e3350d9d16a351075639 /sys/kern/kern_mbuf.c | |
parent | 98d3f2b20be27933556adebedec3a2fc069854c1 (diff) | |
download | src-b37ffd3189ca080bbdc856da2a357a78c9e374f6.tar.gz src-b37ffd3189ca080bbdc856da2a357a78c9e374f6.zip |
Move some functions and definitions from uipc_socket2.c to uipc_socket.c:
- Move sonewconn(), which creates new sockets for incoming connections on
listen sockets, so that all socket allocate code is together in
uipc_socket.c.
- Move 'maxsockets' and associated sysctls to uipc_socket.c with the
socket allocation code.
- Move kern.ipc sysctl node to uipc_socket.c, add a SYSCTL_DECL() for it
to sysctl.h and remove lots of scattered implementations in various
IPC modules.
- Sort sodealloc() after soalloc() in uipc_socket.c for dependency order
reasons. Statisticize soalloc() and sodealloc() as they are now
required only in uipc_socket.c, and are internal to the socket
implementation.
After this change, socket allocation and deallocation is entirely
centralized in one file, and uipc_socket2.c consists entirely of socket
buffer manipulation and default protocol switch functions.
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=159481
Diffstat (limited to 'sys/kern/kern_mbuf.c')
-rw-r--r-- | sys/kern/kern_mbuf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c index 7f39bd889a2c..0f03779beb12 100644 --- a/sys/kern/kern_mbuf.c +++ b/sys/kern/kern_mbuf.c @@ -110,7 +110,6 @@ tunable_mbinit(void *dummy) } SYSINIT(tunable_mbinit, SI_SUB_TUNABLES, SI_ORDER_ANY, tunable_mbinit, NULL); -SYSCTL_DECL(_kern_ipc); /* XXX: These should be tuneables. Can't change UMA limits on the fly. */ static int sysctl_nmbclusters(SYSCTL_HANDLER_ARGS) |