Re: if_ioctl locking

From: John Baldwin <jhb_at_freebsd.org>
Date: Wed, 7 Feb 2007 12:13:16 -0500
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
Received on Wed Feb 07 2007 - 16:37:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:05 UTC