From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Adam J. Richter" Date: Fri, 21 Mar 2003 09:40:48 +0000 Subject: small devfs patch for 2.5.65, plan to replace /sbin/hotplug Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org There have been some devfs clean ups in the stock kernels since 2.5.63, so here is a patch so that people have a version that applies cleanly: ftp://ftp.yggdrasil.com/pub/dist/device_control/devfs/smalldevfs-2.5.65-v12.patch There is no change to the optional devfs_helper user level agent, a reduced-functionality replacement for devfsd (devfsd is not used under under this version of devfs), available here: ftp://ftp.yggdrasil.com/pub/dist/device_control/devfs/devfs_helper-0.2.tar.gz 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//devices//, one for insertion and one for removal. This future change would not just be for aesthetics (although I've worried about potential bugs arising from /sbin/hotplug's pollution of environment variable name space). This change would result in a smaller kernel when both hotplug and devfs are configured, and, hopefully, a kernel that is no larger when only one or neither are configured (if neither are configured, the code would not be compiled in). It should also shrink the amount of user code need to support the combination of hotplug and devfs and slightly reduce the Linux-specific abstractions that system administrators have to track. -- Adam J. Richter __ ______________ 575 Oroville Road adam@yggdrasil.com \ / Milpitas, California 95035 +1 408 309-6081 | g g d r a s i l United States of America "Free Software For The Rest Of Us." ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel