summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_conf.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-28 19:21:36 +0000
committerphk <phk@FreeBSD.org>1999-08-28 19:21:36 +0000
commitf6c7768ee995f37030781425a73e8d7494e5f01b (patch)
treed3a49eae62b858e7433d75dfad84dd95aa615451 /sys/kern/kern_conf.c
parentd311a0563b028d3e166491087449add32c84b684 (diff)
downloadFreeBSD-src-f6c7768ee995f37030781425a73e8d7494e5f01b.zip
FreeBSD-src-f6c7768ee995f37030781425a73e8d7494e5f01b.tar.gz
Put a brief comment on a couple of #defines.
Diffstat (limited to 'sys/kern/kern_conf.c')
-rw-r--r--sys/kern/kern_conf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index 58dc63f..3f49464 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -51,7 +51,14 @@ static int bmaj2cmaj[NUMCDEVSW];
MALLOC_DEFINE(M_DEVT, "dev_t", "dev_t storage");
+/*
+ * This is the number of hash-buckets. Experiements with 'real-life'
+ * udev_t's show that a prime halfway between two powers of two works
+ * best.
+ */
#define DEVT_HASH 83
+
+/* The number of dev_t's we can create before malloc(9) kick in. */
#define DEVT_STASH 50
static struct specinfo devt_stash[DEVT_STASH];
OpenPOWER on IntegriCloud