Re: [RFC] x86 ELF bootable kernels/Linux booting Linux/LinuxBIOS

From: Greg KH (greg@kroah.com)
Date: Fri Feb 01 2002 - 02:22:02 EST


On Thu, Jan 31, 2002 at 02:03:09PM +1100, Keith Owens wrote:
> On 30 Jan 2002 19:42:14 -0700,
> ebiederm@xmission.com (Eric W. Biederman) wrote:
> >I like the other suggestion of extending the Hot-plug infrastructure.
> >In that case I just need to figure out how to logically Hot-unplug all
> >the devices in the system. That may be better than a
> >do_exitcalls()... As it automatically gets the discrimination right.
>
> In an ideal world, it should be enough to call the module_exit()
> functions in reverse order to the module_init(), LIFO. But check with
> the hotplug list, they have done most of the work on this problem.

Actually, no we haven't :)

We punt on the "do we remove the driver when the device disappears"
issue, and instead ignore the hotplug REMOVE events right now.

So far, no one's complained.

But to unplug all of the devices in the system in the proper order,
you're probably going to have to use the driverfs tree that is slowly
taking shape. That's the only representation of all physical devices in
the system that shows the topology correctly.

Hope this helps,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Feb 07 2002 - 21:00:11 EST