|
Rockbox mail archiveSubject: RE: Question re Linux...RE: Question re Linux...
From: Linus G Larsson <lgl_at_leia.org>
Date: 04 Jul 2002 16:14:57 +0200 On Thu, 2002-07-04 at 15:46, Nielsen Linus (ext) wrote: > > I also use hotplug, which works wonderfully. When i plug in the > > Recorder, hotplug discovers it and loads the usb-storage module. I can > > even mount the Recorder, pull out the USB cable, go home, > > plug it in the next morning, and never have to remount it. Too > > good to be true, eh? =) > > Can you elaborate a little on the hotplug feature? I have never used it. From the hotplug man page: -- hotplug is a program which is used by the kernel to notify user mode software when some significant (usually hardware-related) events take place. An example is when a USB or Cardbus device has just been plugged in. This is useful for automatically loading and setting up drivers, packaged either as kernel modules or as user mode programs. -- Basically, the program's path is registered in /proc/sys/kernel/hotplug, and the kernel calls it with a couple of arguments when a new device is discovered by the kernel. The user space program then calls an agent that, well, does stuff. To use it, you need to say yes to "Support for hot-pluggable devices" (CONFIG_HOTPLUG) in "General setup". If you have a motherboard with a PCI Hotplug controller, you can also say yes to "Support for PCI Hotplug" (CONFIG_HOTPLUG_PCI), which allows you to add and remove PCI cards the the machine is running (k-rad!). Then you have to install the hotplug user tools, which are available to Red Hat and Debian, at least. For more info, go to http://linux-hotplug.sourceforge.net/. > /Linus (talking to myself? Umm, yup. Regards, LinusReceived on 2002-07-04 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |