From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Date: Thu, 18 Mar 2004 04:55:34 +0000 Subject: Re: Non-hardware devices like loop: another idea Message-Id: <20040317215534.A26919@lnxi.com> List-Id: References: <200403122003.00557.patrakov@ums.usu.ru> In-Reply-To: <200403122003.00557.patrakov@ums.usu.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Mar 17 2004 at 20:56, Alexander E. Patrakov wrote: > > So wouldn't a better option be to make the various devices that don't > > support hotplug and/or sysfs support them? Then udev just needs some new > > rules. Infering information from the module load (via modules.alias) is > > fragile. > > The loop module supports sysfs, and generated hotplug events when inserted or > removed. The problem is that you cannot make the current hotplug scripts > insert this module at hardware detection phase. If you know something > different, please tell us how (based on what information) would you make > devices such as loop, lp, ppdev (note that they properly support sysfs, but > can't be detected as hardware) present in /dev? The only other solution > mentioned here was to keep a big tarball of such undetectable devices and > untar it every boot. Ok, so at system boot umlstart walks sysfs and populates /dev accordingly; loop devices work great. GregKH says tun/tap devices now work in 2.6.4; so ultimately its just a matter of adding sysfs support to the various device drivers. But your desire for loading modules when a device node is accessed isn't doable. Mike ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ 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