From 5f9f53ab5b33dfd581b0af4a4869fa372f927c22 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 12 Nov 1995 19:52:09 +0000 Subject: 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. --- sys/kern/kern_tc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/kern/kern_tc.c') diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c index 1773287..581ba5a 100644 --- a/sys/kern/kern_tc.c +++ b/sys/kern/kern_tc.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, -- cgit v1.1