Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Oct 2000 10:48:27 -0400 (EDT)
From:      Bosko Milekic <bmilekic@dsuper.net>
To:        Christopher Harrer <charrer@alacritech.com>
Cc:        Freebsd-Net <freebsd-net@FreeBSD.ORG>
Subject:   Re: Locking a SOCKET
Message-ID:  <Pine.BSF.4.21.0010091042090.1271-100000@jehovah.technokratis.com>
In-Reply-To: <POELKPJGDHAPIPMEMHGAEEDKCGAA.charrer@alacritech.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0010091042090.1271-100000>