Date: Mon, 18 Feb 2002 11:06:51 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Poul-Henning Kamp <phk@critter.freebsd.dk> Cc: Matthew Dillon <dillon@apollo.backplane.com>, Terry Lambert <tlambert2@mindspring.com>, Julian Elischer <julian@elischer.org>, Alfred Perlstein <bright@mu.org>, <arch@FreeBSD.ORG>, <jhb@FreeBSD.ORG>, <peter@wemm.org>, <jake@locore.ca> Subject: Re: gettimeofday() and crhold()/crfree() (was Re: gettimeofday()and copyout(). Is copyout() MPSAFE on non-i386 archs? ) Message-ID: <20020218110408.N3938-100000@gamplex.bde.org> In-Reply-To: <5405.1013975811@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 17 Feb 2002, Poul-Henning Kamp wrote:
> Peter and I actually had a sligthly different idea:
>
> Add a new syscall:
>
> int getkernstuff(struct kernstuff *kp);
>
> struct kernstuff {
> u_int32_t version;
> pid_t pid, ppid;
> uid_t uid, euid ...
> gid_t gid, guid ...
> signal masks
> ...
> }
>
> The idea here being that the userland process registers a single
> static structure with the kernel. Inside libc, this structure
> can be used to speed up signal processing and much more.
This might have been useful in 1980, but gettimeofday() in practice
has 10^6 times as much resolution now. However, updating the kernel
struct 10^6 times per second is beyond the capabilities of even current
machiens, in software. It is possible in hardware of course.
Bruce
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020218110408.N3938-100000>
