Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2007 12:13:16 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-current@freebsd.org
Cc:        Andrew Gallatin <gallatin@cs.duke.edu>
Subject:   Re: if_ioctl locking
Message-ID:  <200702071213.16666.jhb@freebsd.org>
In-Reply-To: <17855.43785.77326.42561@grasshopper.cs.duke.edu>
References:  <17855.43785.77326.42561@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 30 January 2007 15:31, Andrew Gallatin wrote:
> 
> Can somebody please point me to a good example of network driver which
> does its if_ioctl locking correctly?

For simple drivers you can look at de(4), wb(4), pcn(4) etc.  One thing to 
note is that for media ioctls you should lock in your ifmedia callout 
functions, not in foo_ioctl().

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702071213.16666.jhb>