From owner-freebsd-arch Sun Feb 17 12: 0: 7 2002 Delivered-To: freebsd-arch@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 7DE8437B402; Sun, 17 Feb 2002 12:00:02 -0800 (PST) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.6/8.11.6) with ESMTP id g1HJupN05407; Sun, 17 Feb 2002 20:56:51 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Matthew Dillon Cc: Terry Lambert , Julian Elischer , Alfred Perlstein , 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? ) In-Reply-To: Your message of "Sat, 16 Feb 2002 22:32:16 PST." <200202170632.g1H6WGt43386@apollo.backplane.com> Date: Sun, 17 Feb 2002 20:56:51 +0100 Message-ID: <5405.1013975811@critter.freebsd.dk> From: Poul-Henning Kamp 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 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