if_ioctl locking

John Baldwin jhb at freebsd.org
Wed Feb 7 17:37:44 UTC 2007


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


More information about the freebsd-current mailing list