summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_domain.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2012-10-19 10:15:32 +0000
committerandre <andre@FreeBSD.org>2012-10-19 10:15:32 +0000
commita00941fc1d3d245dda77456d2017090d3bdd1714 (patch)
tree17c03354e3fa8d5f94ceaf035af0b9d7a63edb79 /sys/kern/uipc_domain.c
parent91a702221a940f2abfec83cda26ac4b40efc2165 (diff)
downloadFreeBSD-src-a00941fc1d3d245dda77456d2017090d3bdd1714.zip
FreeBSD-src-a00941fc1d3d245dda77456d2017090d3bdd1714.tar.gz
Move UMA socket zone initialization from uipc_domain.c to uipc_socket.c
into one place next to its other related functions to avoid confusion.
Diffstat (limited to 'sys/kern/uipc_domain.c')
-rw-r--r--sys/kern/uipc_domain.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c
index 1ff6997..c133fcb 100644
--- a/sys/kern/uipc_domain.c
+++ b/sys/kern/uipc_domain.c
@@ -239,28 +239,11 @@ domain_add(void *data)
mtx_unlock(&dom_mtx);
}
-static void
-socket_zone_change(void *tag)
-{
-
- uma_zone_set_max(socket_zone, maxsockets);
-}
-
/* ARGSUSED*/
static void
domaininit(void *dummy)
{
- /*
- * Before we do any setup, make sure to initialize the
- * zone allocator we get struct sockets from.
- */
- socket_zone = uma_zcreate("socket", sizeof(struct socket), NULL, NULL,
- NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
- uma_zone_set_max(socket_zone, maxsockets);
- EVENTHANDLER_REGISTER(maxsockets_change, socket_zone_change, NULL,
- EVENTHANDLER_PRI_FIRST);
-
if (max_linkhdr < 16) /* XXX */
max_linkhdr = 16;
OpenPOWER on IntegriCloud