From owner-freebsd-arch Sun Feb 17 16: 7:19 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 42AFA37B402; Sun, 17 Feb 2002 16:07:16 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id LAA07090; Mon, 18 Feb 2002 11:06:52 +1100 Date: Mon, 18 Feb 2002 11:06:51 +1100 (EST) From: Bruce Evans X-X-Sender: To: Poul-Henning Kamp Cc: Matthew Dillon , Terry Lambert , Julian Elischer , Alfred Perlstein , , , , Subject: Re: gettimeofday() and crhold()/crfree() (was Re: gettimeofday()and copyout(). Is copyout() MPSAFE on non-i386 archs? ) In-Reply-To: <5405.1013975811@critter.freebsd.dk> Message-ID: <20020218110408.N3938-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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