- Timestamp:
- 08/17/2004 10:12:01 PM (20 years ago)
- Branches:
- 6.0
- Children:
- fa2f5ad
- Parents:
- 6850316
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/udev.xml
r6850316 r24a08b9 153 153 <para>When you plug in a device, e.g. a USB MP3 player, the kernel 154 154 recognizes that the device is now connected and generates a hotplug 155 event. The driver will already have been loaded (either because it was 156 compiled into the kernel, or it was loaded via the 157 <command>S05modules</command> bootscript) so <command>udev</command> 158 will simply be called upon to create the relevant device node 159 according to the <systemitem class="filesystem">sysfs</systemitem> 160 data available in <filename class="directory">/sys</filename>.</para> 155 event. If the driver is already loaded (either because it was compiled 156 into the kernel, or it was loaded via the 157 <command>S05modules</command> bootscript) <command>udev</command> will 158 be called upon to create the relevant device node(s) according to the 159 <systemitem class="filesystem">sysfs</systemitem> data available in 160 <filename class="directory">/sys</filename>. If the driver for the 161 just plugged in device is available as a module but currently unloaded, 162 then attaching the device to the system will only cause the kernel's 163 bus driver to generate a hotplug event that notifies userspace of the 164 new device connection and it not being attached to a driver. In 165 effect, nothing happens and the device itself is not usable 166 yet.</para> 167 168 <para>If you are building a system that has a lot of drivers compiled 169 as modules rather than directly built into the kernel and using the 170 <command>S05modules</command> is not practical then the Hotplug 171 package (see <ulink url="http://linux-hotplug.sourceforge.net/"/>) can 172 be beneficial. When the Hotplug package is installed it will respond 173 to the aforementioned kernel's bus driver hotplug events. The Hotplug 174 package will load the appropriate module and make this device 175 available by creating the device node(s) for it.</para> 161 176 </sect2> 162 177
Note:
See TracChangeset
for help on using the changeset viewer.