diff options
author | peter <peter@FreeBSD.org> | 2001-06-08 05:24:21 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-06-08 05:24:21 +0000 |
commit | 4b91e2ecf0aa1bb9c2c89a4f0ef1701e5aec268f (patch) | |
tree | 86b0161dd1235a75cc934e1a85ca5844895edd8f /sys/kern/uipc_mbuf.c | |
parent | aa18b0b03200ae9ae0c0f42a9a5253d50a170e64 (diff) | |
download | FreeBSD-src-4b91e2ecf0aa1bb9c2c89a4f0ef1701e5aec268f.zip FreeBSD-src-4b91e2ecf0aa1bb9c2c89a4f0ef1701e5aec268f.tar.gz |
"Fix" the previous initial attempt at fixing TUNABLE_INT(). This time
around, use a common function for looking up and extracting the tunables
from the kernel environment. This saves duplicating the same function
over and over again. This way typically has an overhead of 8 bytes + the
path string, versus about 26 bytes + the path string.
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 3a21233..df9db28 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -103,9 +103,9 @@ SYSCTL_INT(_kern_ipc, OID_AUTO, nmbufs, CTLFLAG_RD, &nmbufs, 0, SYSCTL_INT(_kern_ipc, OID_AUTO, nmbcnt, CTLFLAG_RD, &nmbcnt, 0, "Maximum number of ext_buf counters available"); -TUNABLE_INT("kern.ipc.nmbclusters", nmbclusters); -TUNABLE_INT("kern.ipc.nmbufs", nmbufs); -TUNABLE_INT("kern.ipc.nmbcnt", nmbcnt); +TUNABLE_INT("kern.ipc.nmbclusters", &nmbclusters); +TUNABLE_INT("kern.ipc.nmbufs", &nmbufs); +TUNABLE_INT("kern.ipc.nmbcnt", &nmbcnt); static void m_reclaim(void); |