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