Skip to contentSkip to conversation

dev.d and multi-device devices

DISCUSSION Bill Nottingham 2 participants 3 messages Oct 14, 2004 – Oct 15, 2004

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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

#2 lore raw
In reply to Bill Nottingham
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