Subject: Re: if_ioctl
To: Lennart Augustsson <lennart@mail.augustsson.net>
From: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
List: tech-kern
Date: 01/20/2001 23:34:45
> In `struct ifnet' there is a function pointer that performs ioctl()
> calls, if_ioctl.  Can this function ever be called from non-process
> context?  (I really hope not, otherwise I don't really know how
> to rewrite the USB Ethernet drivers to function properly.)

there certainly are certain interface driver ioctls which assume
process context -- look at the implementation of ifmedia_ioctl() -- it
uses copyin/copyout and malloc with WAITOK with impunity.

					- Bill