"Hen, Shmulik" wrote: > > I don't get it. > > If do_ioctl runs inside rtnl_lock, why do I have to run register_netdevice > with rtnl_lock held ? Whoops, no you are right there. > if I run register_netdevice from do_ioctl, I get the "assertion failed..." > and if I run register_netdev instead I get a "trying to schedule in > interrupt..." panic. Yeah, register_netdev tries to get rtnl_lock, so that is bad. If you are using register_netdevice in do_ioctl, without grabbing rtnl_lock, then something else is going on... -- Jeff Garzik | Building 1024 | Would you like a Twinkie? MandrakeSoft | - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org