FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 01-21-2008, 03:08 PM
Bill Moseley
 
Default What happened to hotplug?

Is hotplug still used in Gutsy? My (simple) understanding was that
the kernel would run hotplug on device changes, and then the hotplug
scripts would notifiy udev and hal of the changes. Something like
this description[1].

Well, seems like the kernel is enabled:

$ fgrep HOTPLUG /boot/config-2.6.22-14-generic | grep =y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_HOTPLUG=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_HOTPLUG_CPU=y
CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM=y
CONFIG_HOTPLUG_PCI_CPCI=y


But, no hotplug:

$ file /proc/sys/kernel/hotplug
/proc/sys/kernel/hotplug: empty

$ ls /sbin/hotplug
ls: /sbin/hotplug: No such file or directory


So man udev(7) says that it's notified directly the kernel.

Since udev has the "RUN" feature does that replace the need for
hotplug for loading modules and running scripts on device connection?

Indeed, it somewhat looks that way, since there's a:

/etc/udev/rules.d/90-modprobe.rules


What is also a source of confusion is why are the modprobe rules "90"
instead of a lower number. Wouldn't the modules need to be loaded
before udev can create the /dev/* entries?




[1] http://www.tummy.com/journals/entries/kevin_20041219_131044



--
Bill Moseley
moseley@hank.org


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 12:49 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org