Messages in this thread | | | Date | Sun, 10 Dec 2000 07:58:25 -0500 | From | Jeff Garzik <> | Subject | Re: hotplug mopup |
| |
Andrew Morton wrote: > - On the unregister/removal path, the netdevice layer ensures that > the interface is removed from the kernel namespace prior to launching > `/sbin/hotplug net unregister eth0'. > > This means that when handling netdevice unregistration > /sbin/hotplug cannot and must not attempt to do anything with eth0! > Generally it'll fail to find an interface with this name. If it does > find eth0, it'll be the wrong one due to a race.
This is not a bug. 'unregister eth0' says to userspace "eth0 just disappeared."
Read my previous messages on the subject: Add events like NETDEV_UP, NETDEV_DOWN, and NETDEV_GOING_DOWN to netdev_event_names[] if you want to call /sbin/hotplug for other netdev events.
Jeff
-- Jeff Garzik | Building 1024 | These are not the J's you're lookin' for. MandrakeSoft | It's an old Jedi mind trick. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |