From owner-freebsd-hackers Fri Sep 28 9:24: 9 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id EDB3B37B409 for ; Fri, 28 Sep 2001 09:24:00 -0700 (PDT) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA71256; Fri, 28 Sep 2001 10:12:15 -0700 (PDT) Date: Fri, 28 Sep 2001 10:12:14 -0700 (PDT) From: Julian Elischer To: Gersh Cc: Bernd Walter , Anjali Kulkarni , freebsd-hackers@FreeBSD.ORG Subject: Re: setjmp/longjmp In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yeah but it would probably be a pretty bad idea to use it without very careful thought. Especialy with the kernel becoming pre-emptable in the future.. On Fri, 28 Sep 2001, Gersh wrote: > Look at sys/i386/i386/db_interface.c > > On Fri, 28 Sep 2001, Bernd Walter wrote: > > > On Fri, Sep 28, 2001 at 07:03:51PM +0530, Anjali Kulkarni wrote: > > > hi, > > > Does anyone know whether it is advisable or not to use setjmp/longjmp within kernel code? I could not see any setjmp/longjmp in kernel source code. Is there a good reason for this or can it be used? > > > > You need to look again, it's used in several places in the kernel. > > > > -- > > B.Walter COSMO-Project http://www.cosmo-project.de > > ticso@cicely.de Usergroup info@cosmo-project.de > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message