dev.d and multi-device devices
So, say you have a driver that creates multiple /dev entries. The actual devices don't really function until all of them are available.
How do you write a proper dev.d script - just have it not do anything until it sees what the presumably last device is?
Bill
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 3 lines · Bill Nottingham
So, say you have a driver that creates multiple /dev entries. The actual devices don't really function until all of them are available.
What driver would this be?
Quoted 3 lines
How do you write a proper dev.d script - just have it not do anything until it sees what the presumably last device is?
I guess so. Any specifics?
thanks,
greg k-h
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 5 lines · Greg KH
Quoted 3 lines
So, say you have a driver that creates multiple /dev entries. The actual devices don't really function until all of them are available.
What driver would this be?
It's the ALSA stack... basically, if you want to tweak the mixer, you operate on /dev/snd/controlC<number>; however, that device is available before the hardware resources are.
You can have the script operate when it sees the PCM devices, which works, if slightly incorrect in theory. :)
Bill
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel