aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-08-28 19:21:36 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-08-28 19:21:36 +0000
commita87b535090228d7aab11b20001c3e3d20661feab (patch)
tree0dbb21c1f45ab542bd2e9c0e1651c4152a42c96d /sys
parent96267288756d609b166550d372f831c7f5e75012 (diff)
downloadsrc-a87b535090228d7aab11b20001c3e3d20661feab.tar.gz
src-a87b535090228d7aab11b20001c3e3d20661feab.zip
Put a brief comment on a couple of #defines.
Notes
Notes: svn path=/head/; revision=50522
Diffstat (limited to 'sys')
-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 58dc63f944ca..3f4946494412 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];