Skip to contentSkip to conversation

Hotplug-Perl?

DISCUSSION raid517 4 participants 8 messages Oct 17, 2005 – Oct 28, 2005

lore
Share & tools
lore

raid517

author
#0 lore raw

Hi, are you guys aware of hotplug-perl?
http://opensource.idealcorp.com/hotplug-perl/ This seems like a very promising improvement on the original hotplug and promises a significant speed enhancement. Would anyone consider including it as part of Udev? Is this even possible?

GJ

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 5 lines · On Mon, Oct 17, 2005 at 10:20:05PM +0000, raid517 wrote:

Hi, are you guys aware of hotplug-perl?
http://opensource.idealcorp.com/hotplug-perl/ This seems like a very promising improvement on the original hotplug and promises a significant speed enhancement. Would anyone consider including it as part of Udev? Is this even possible?

This is no longer needed. The whole "hotplug" package is almost dead, as nobody needs to parse *.map files these days to load a module. The kernel exports the MODALIAS string in sysfs and the event environment, which can be natively handled by modprobe. No need for _any_ magic script.
The remaining part of the "hotplug" package is mostly converted to udev rules. We are currently working on getting rid of the coldplug *.rc scripts as well.

Kay

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to raid517
Quoted 4 lines · Kay Sievers

This is no longer needed. The whole "hotplug" package is almost dead, as nobody needs to parse *.map files these days to load a module. The kernel exports the MODALIAS string in sysfs and the event environment, which can be natively handled by modprobe. No need for _any_ magic script.

This map feature is still appreciated to detect PTP cameras and scanners for example. Module loading isn't required for these devices, but a script may have to be run to alert desktop applications.

Signature · 14 lines
Olivier Blin
Mandriva



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#3 lore raw
In reply to raid517
Quoted 3 lines · Olivier Blin

This map feature is still appreciated to detect PTP cameras and scanners for example. Module loading isn't required for these devices, but a script may have to be run to alert desktop applications.

So what? Look at the debian package for e.g. libsane, eciadsl or libgphoto. There is a script which generates a rules file with the RUN rules needed for all devices supported.
There is no reason at all to use maps.

Signature · 13 lines
ciao,
Marco


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#4 lore raw
In reply to raid517
Quoted 8 lines · [email protected] (Marco d'Itri) writes:
Quoted 3 lines · Olivier Blin

This map feature is still appreciated to detect PTP cameras and scanners for example. Module loading isn't required for these devices, but a script may have to be run to alert desktop applications.

So what? Look at the debian package for e.g. libsane, eciadsl or libgphoto. There is a script which generates a rules file with the RUN rules needed for all devices supported.

I did the same for Mandriva, see
http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/SPECS/udev/udev_import_usermap?rev=1.5&content-type=text/x-cvsweb-markup

Quoted 1 line

There is no reason at all to use maps.

No, but we should provide a tool to convert maps in the udev package. The script you use in Debian is quite similar to mine, but it's duplicated among all your packages.

Signature · 14 lines
Olivier Blin
Mandriva



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#5 lore raw
In reply to raid517
Quoted 1 line · Olivier Blin

No, but we should provide a tool to convert maps in the udev package.

No, we should tell upstream maintainers that it's about time they fix their packages to properly support udev.

Quoted 2 lines

The script you use in Debian is quite similar to mine, but it's duplicated among all your packages.

Because they are different packages with different needs and providing the data about the devices they support in different formats...

Signature · 13 lines
ciao,
Marco


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#6 lore raw
In reply to raid517
Quoted 5 lines · [email protected] (Marco d'Itri) writes:
Quoted 1 line · Olivier Blin

No, but we should provide a tool to convert maps in the udev package.

No, we should tell upstream maintainers that it's about time they fix their packages to properly support udev.

This does not prevent the udev team to provide a tool to help upstream maintainers.

Quoted 4 lines
Quoted 2 lines

The script you use in Debian is quite similar to mine, but it's duplicated among all your packages.

Because they are different packages with different needs and providing the data about the devices they support in different formats...

It's not much work to provide a generic tool that handles that. I think it's really worth the maintainance cost needed to port other packages.

Signature · 14 lines
Olivier Blin
Mandriva



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#7 lore raw
In reply to raid517
Quoted 10 lines · Olivier Blin
Quoted 4 lines · Kay Sievers

This is no longer needed. The whole "hotplug" package is almost dead, as nobody needs to parse *.map files these days to load a module. The kernel exports the MODALIAS string in sysfs and the event environment, which can be natively handled by modprobe. No need for _any_ magic script.

This map feature is still appreciated to detect PTP cameras and scanners for example. Module loading isn't required for these devices, but a script may have to be run to alert desktop applications.

That is what HAL is used for today. You really want to do more than running a "notification program". HAL has all the data for scanners and cameras available along with all the other device properties, userspace is interested in.

Kay

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel