From owner-freebsd-arch Tue Oct 3 13: 1: 7 2000 Delivered-To: freebsd-arch@freebsd.org Received: from berserker.bsdi.com (berserker.twistedbit.com [199.79.183.1]) by hub.freebsd.org (Postfix) with ESMTP id 568B937B66C; Tue, 3 Oct 2000 13:01:05 -0700 (PDT) Received: from berserker.bsdi.com (cp@LOCALHOST [127.0.0.1]) by berserker.bsdi.com (8.9.3/8.9.3) with ESMTP id OAA12968; Tue, 3 Oct 2000 14:01:02 -0600 (MDT) Message-Id: <200010032001.OAA12968@berserker.bsdi.com> To: Alfred Perlstein Cc: John Baldwin , arch@freebsd.org, John Polstra , Daniel Eischen , Matt Dillon , Greg Lehey Subject: Re: Mutexes and semaphores In-reply-to: Your message of "Tue, 03 Oct 2000 12:16:04 PDT." <20001003121604.H27736@fw.wintelcom.net> From: Chuck Paterson Date: Tue, 03 Oct 2000 14:01:02 -0600 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG concerning asmlinkage long sys_getppid(void) I would point out that the kernel could be pre-empted for an arbitrary long period of time and that by the time you look at the pointer it may no longer point at anything usefull, and could even fault. With the multi-threaded kernel this can happen just from interrupts, you don't even have to wander into the much less likely, but still possible, case of having a top half preempt. Chuck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message