Date: Fri, 24 May 1996 08:32:30 -0700 From: David Greenman <davidg@Root.COM> To: ormonde@trem.cnt.org.br (Rodrigo Ormonde) Cc: freebsd-hackers@freebsd.org Subject: Re: splnet() and splx() Message-ID: <199605241532.IAA20249@Root.COM> In-Reply-To: Your message of "Fri, 24 May 1996 10:17:33 -0300." <9605241317.AA09726@trem.cnt.org.br>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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() ? spl*() and splx() block and restore, respectively, specific classes of interrupts. splnet() blocks software network ASTs, for example, while splimp() blocks network device interrupts. splx() restores the previously saved state. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605241532.IAA20249>