[Madlug] which driver created a device?
Brad
userlame+madlug at userlame.com
Tue Jan 13 13:33:43 CST 2009
On Tue Jan 13, 2009 at 12:51:09PM -0600, Nathan W. Panike wrote:
> Look in /proc/devices and at the device ID from ls (not sure which
> option to give ls here). I think those 2 pieces of information will
> allow you to figure it out.
Just ls -l will give you (in order):
mode, link count, owner, group, device major id, device minor id, stuff
On my machine looking at /dev/snd/controlC0:
luser at miranda ~ $ ls -l /dev/snd/controlC0
crw-rw---- 1 root audio 116, 0 Jan 13 09:36 /dev/snd/controlC0
This shows the device major id is 116. Checking /proc/devices:
luser at miranda ~ $ egrep ^116 /proc/devices
116 alsa
So it looks like that device was created by alsa.
> On Tue, Jan 13, 2009 at 10:14 AM, John G. Heim <jheim at math.wisc.edu> wrote:
> > When I was trying to get my PC to always use the add-on sound card as the
> > second device, I thought it might be nice to be able to tell which driver
> > created /dev/snd/controlC0. That would have been the add-on card because it
> > was coming up as the first sound card. I grepped the syslog for controlC0
> > and got nothing. I grepped messages and ngot nothing. I grepped *all* the
> > files in /var/log/ and got nothing.
HTH,
--
Brad
More information about the Madlug
mailing list