Date: Mon, 9 Oct 2000 10:46:35 -0400 From: "Christopher Harrer" <charrer@alacritech.com> To: "Bosko Milekic" <bmilekic@dsuper.net> Cc: "Freebsd-Net" <freebsd-net@FreeBSD.ORG> Subject: RE: Locking a SOCKET Message-ID: <POELKPJGDHAPIPMEMHGAOEDMCGAA.charrer@alacritech.com> In-Reply-To: <Pine.BSF.4.21.0010091042090.1271-100000@jehovah.technokratis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Bosko, Thanks very much for the answer, it's very imformative and a great help! Chris -----Original Message----- From: owner-freebsd-net@FreeBSD.ORG [mailto:owner-freebsd-net@FreeBSD.ORG]On Behalf Of Bosko Milekic Sent: Monday, October 09, 2000 10:48 AM To: Christopher Harrer Cc: Freebsd-Net Subject: Re: Locking a SOCKET On Mon, 9 Oct 2000, Christopher Harrer wrote: > Hello All, > > Sorry if this is a simplistic question. I am writing a SOCKET "filter" > driver. Can someone please point me to documentation that explains the > locking methods in FreeBSD? > > Thanks! > > Chris Hi Chris, The "locking" methods for sockets are still "in-development." :-) Basically, Alfred is working on this, the last time I checked. I'm hoping that he will post in follow-up to your Email, but if not, you can always peek/poke/etc at his web space: http://people.freebsd.org/~alfred/mpsafe/ There is a file in there called "stackjournal.txt" which, amongst other things, discusses some issues pertaining to locking the socket structure. This is work-in-progress, and it's taking place in -CURRENT. If you are running -STABLE, the code there takes care of structure consistency by masking out the soft net interrupt, with splnet(). This takes care of sockets, and socket buffers. If you write something using these semantics, and want to keep supporting it, be prepared to do some modifying eventually, when the locking stuff is finalized and committed. Cheers, Bosko Milekic bmilekic@technokratis.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message 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?POELKPJGDHAPIPMEMHGAOEDMCGAA.charrer>