On Mon, 30 Aug 1999, Peter Dufault wrote:
> > there are very few values that could make sense in both Hours scale and
> > usecs scale..
> >
> > thus items that could be small could be in uSecs and items that could
> > be big could be in Secs.. A small set of functions could be used to
> > make this uniform through the system
> >
> > syscall_Secs_to_hz(ulong *ticks, boolean Allow_zero SYSCTL_HANDLER_ARGS)
> > syscall_mSecs_to_hz(ulong *ticks, boolean Allow_zero, SYSCTL_HANDLER_ARGS)
> > syscall_uSecs_to_hz(ulong *ticks, boolean Allow_zero, SYSCTL_HANDLER_ARGS)
>
> How about struct timeval instead?
Firstly we are talking about time deltas, and on the sysctl side of things
it's very hard to set 'timevals (as you'd need to set two different
variables) so you need a single value on teh userland side of things.
Inside the kernel it's all done in ticks, so you should store that.
thus having chosen the two units for internal and external, the function
almost defines itself.
julian
>
> Peter
>
> --
> Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control,
> HD Associates, Inc. Safety critical systems, Agency approval
>
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message