summaryrefslogtreecommitdiffstats
path: root/sys/kern/sysv_shm.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-06-10 14:34:07 +0000
committerrwatson <rwatson@FreeBSD.org>2006-06-10 14:34:07 +0000
commit120490c1a53b9a5e5df4f242c0ea5afd571503e5 (patch)
tree65b5fe3647642c3e72f5e3350d9d16a351075639 /sys/kern/sysv_shm.c
parent1a50da1db5b6e916c2426726bb89218851beefe1 (diff)
downloadFreeBSD-src-120490c1a53b9a5e5df4f242c0ea5afd571503e5.zip
FreeBSD-src-120490c1a53b9a5e5df4f242c0ea5afd571503e5.tar.gz
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
Diffstat (limited to 'sys/kern/sysv_shm.c')
-rw-r--r--sys/kern/sysv_shm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c
index d785891..175bc67 100644
--- a/sys/kern/sysv_shm.c
+++ b/sys/kern/sysv_shm.c
@@ -180,7 +180,6 @@ struct shminfo shminfo = {
static int shm_use_phys;
static int shm_allow_removed;
-SYSCTL_DECL(_kern_ipc);
SYSCTL_ULONG(_kern_ipc, OID_AUTO, shmmax, CTLFLAG_RW, &shminfo.shmmax, 0,
"Maximum shared memory segment size");
SYSCTL_ULONG(_kern_ipc, OID_AUTO, shmmin, CTLFLAG_RW, &shminfo.shmmin, 0,
OpenPOWER on IntegriCloud