From owner-freebsd-hackers Fri May 24 19:37:21 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA00708 for hackers-outgoing; Fri, 24 May 1996 19:37:21 -0700 (PDT) Received: from parkplace.cet.co.jp (parkplace.cet.co.jp [202.32.64.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA00697 for ; Fri, 24 May 1996 19:37:11 -0700 (PDT) Received: from localhost (michaelh@localhost) by parkplace.cet.co.jp (8.7.5/CET-v2.1) with SMTP id LAA12293; Sat, 25 May 1996 11:36:51 +0900 (JST) Date: Sat, 25 May 1996 11:36:51 +0900 (JST) From: Michael Hancock To: Rodrigo Ormonde cc: freebsd-hackers@FreeBSD.org Subject: Re: splnet() and splx() In-Reply-To: <9605241317.AA09726@trem.cnt.org.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 24 May 1996, Rodrigo Ormonde wrote: > I'm working inside the FreeBSD kernel and sometimes I see the following > construction: (it is present in many modules) > > int s; > > s = splnet(); > > /* There is code here */ > > splx(s); > > Does anybody know what are the functions splnet() and splx() ? They are for blocking and restoring interrupts. spl stands for Set Priority Level. -mh