Date: Wed, 20 Feb 2002 11:46:09 +0100 (CET) From: Nicolas Fritsch <nfritsch@enition.com> To: freebsd-net@freebsd.org Subject: Interrupts / No interrupts Message-ID: <20020220114202.T64112-100000@mexico.nettoll.com>
next in thread | raw e-mail | index | archive | help
Hi! I'm working on an IP encapsulation protocol, a la IPSec. Since I need to manage sessions, I have "shared datum" among several IP packets, so I need to splnet() / splx() the code. A simple way to do it is just to protect my whole code inside a splnet(), and then splx() when it exits. I that a bad idea? Should I only protect some portions, and why? Thanks Nicolas Fritsch Software Engineer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020220114202.T64112-100000>