summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_timeout.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-11-12 19:52:09 +0000
committerphk <phk@FreeBSD.org>1995-11-12 19:52:09 +0000
commit5f9f53ab5b33dfd581b0af4a4869fa372f927c22 (patch)
tree7c813d71fe68452635b20d9c4c1af3b237654155 /sys/kern/kern_timeout.c
parent86d2c8334f1e818ef132d9b2a348464cca3aa038 (diff)
downloadFreeBSD-src-5f9f53ab5b33dfd581b0af4a4869fa372f927c22.zip
FreeBSD-src-5f9f53ab5b33dfd581b0af4a4869fa372f927c22.tar.gz
The entire sysctl callback to read/write version. I havn't tested this as
much as I'd like to, but the malloc stunt I tried for an interim for sure does worse. Now we can read and write from any kind of address-space, not only user and kernel, using callbacks. This may be over-generalization for now, but it's actually simpler.
Diffstat (limited to 'sys/kern/kern_timeout.c')
-rw-r--r--sys/kern/kern_timeout.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c
index 1773287..581ba5a 100644
--- a/sys/kern/kern_timeout.c
+++ b/sys/kern/kern_timeout.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
- * $Id: kern_clock.c,v 1.17 1995/10/12 20:35:01 wollman Exp $
+ * $Id: kern_clock.c,v 1.18 1995/11/08 08:45:58 phk Exp $
*/
/* Portions of this software are covered by the following: */
@@ -986,8 +986,7 @@ sysctl_kern_clockrate SYSCTL_HANDLER_ARGS
clkinfo.tick = tick;
clkinfo.profhz = profhz;
clkinfo.stathz = stathz ? stathz : hz;
- return (sysctl_handle_opaque(
- oidp, &clkinfo, sizeof clkinfo, oldp, oldlenp, newp, newlen));
+ return (sysctl_handle_opaque(oidp, &clkinfo, sizeof clkinfo, req));
}
SYSCTL_OID(_kern, KERN_CLOCKRATE, clockrate,
OpenPOWER on IntegriCloud