Date: Sun, 17 Feb 2002 20:56:51 +0100 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Matthew Dillon <dillon@apollo.backplane.com> Cc: 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: <5405.1013975811@critter.freebsd.dk> In-Reply-To: Your message of "Sat, 16 Feb 2002 22:32:16 PST." <200202170632.g1H6WGt43386@apollo.backplane.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
The kernel accesses the structure in userland with copyin/copyout/fubyte,
and the usage of this feature is entirely optional, programs don't
have to do it.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
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?5405.1013975811>
