Re: small devfs patch for 2.5.65, plan to replace /sbin/hotplug

Greg KH
2003-03-21T23:10:27Z

On Fri, Mar 21, 2003 at 01:45:09PM -0700, Kevin P. Fleming wrote:
> Adam J. Richter wrote:
> > I believe that the only change in this version of devfs is
> >moving the code to invoke the user level devfs_helper program to a
> >separate file, fs/devfs/notify.c. This change will simplify a future
> >code shrink inspired by David Brownell's suggesting that I think about
> >unifying hotplug with devfs. In the future I would like to lift
> >fs/devfs/notify.c out of devfs so that the code that currently invokes
> >user level helpers for hot plug events can be replaced with two calls
> >to a renamed devfs_event() on
> >/sys/bus/<bustype>/devices/<bus#>/<whatever>, one for insertion and
> >one for removal.

Adam, right now we get /sbin/hotplug events for every device insertion
and removal in the kernel. Do you want more than this?

> Are you still considering smalldevfs for 2.6 inclusion? If not, then I'd
> like to discuss with you (and Greg KH) the possibility of just eliminating
> devfs entirely, and moving to a userspace version that is driven entirely
> by /sbin/hotplug.

You mean with something like this:
http://www.linuxsymposium.org/2003/view_abstract.php?talk=94
:)

thanks,

greg k-h