diff options
author | phk <phk@FreeBSD.org> | 1999-08-28 19:21:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-08-28 19:21:36 +0000 |
commit | f6c7768ee995f37030781425a73e8d7494e5f01b (patch) | |
tree | d3a49eae62b858e7433d75dfad84dd95aa615451 /sys/kern | |
parent | d311a0563b028d3e166491087449add32c84b684 (diff) | |
download | FreeBSD-src-f6c7768ee995f37030781425a73e8d7494e5f01b.zip FreeBSD-src-f6c7768ee995f37030781425a73e8d7494e5f01b.tar.gz |
Put a brief comment on a couple of #defines.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_conf.c | 7 |
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]; |