[devel] Linux: hotplug-ng, Tiny Binaries for Autoloading Modules

Gleb Stiblo =?iso-8859-1?q?g=2Estiblo_=CE=C1_sam-solutions=2Enet?=
Пн Фев 14 17:22:35 MSK 2005


Взято с kerneltrap.org:

http://kerneltrap.org/node/4706


Linux: hotplug-ng, Tiny Binaries for Autoloading Modules

Greg KH announced his new hotplug based userspace project known as
hotplug-ng. He explains, "this collection of code replaces the existing
linux-hotplug package with very tiny, compiled executable programs,
instead of the existing bash scripts." He goes on to add:

    "But why redo this all in .c code? What's wrong with shell scripts?
Nothing is wrong with shell scripts, unless you don't want to have an
interpreter in your initramfs/initrd and you want to provide
/sbin/hotplug and autoload module functionality. Or if you have a huge
box that spawns a zillion hotplug events all at once, and you need to be
able to handle all of that with the minimum amount of processing time
and memory."

Greg noted that he unscientifically noticed a speedup in how long it
took for the proper module to be loaded after a usb devices was plugged
into his slow laptop. With the old bash based hotplug scripts, this took
about 2 seconds. With his new c-based hotplug-ng program, it took less
than 1 second. In response to some clarification questions, he replied,
"I do realize the whole hotplug process is getting a bit complicated. I
hope to write up some good documentation on what all is involved to help
clear up some of the confusion that the combination of udev, udevsend,
udevd, hal, /etc/hotplug.d/, /etc/dev.d/, and /sbin/hotplug have caused
lately."




-- 
Gleb Stiblo AKA UlfR 	<g.stiblo на sam-solutions.net>




Подробная информация о списке рассылки Devel