In message <[EMAIL PROTECTED]>, "Thomas E. Zander" write
s:
>Sorry, this is probably a stupid question, but:
>
>[riggs] ~ > ll /dev/ds*
>crw-rw-rw-  1 root  wheel   30,   3 27 Jan 14:46 /dev/dsp0.0
>crw-rw-rw-  1 root  wheel   30, 0x00010003 27 Jan 10:59 /dev/dsp0.1
>crw-rw-rw-  1 root  wheel   30,   5 27 Jan 10:59 /dev/dspW0.0
>crw-rw-rw-  1 root  wheel   30, 0x00010005 27 Jan 10:59 /dev/dspW0.1
>crw-rw-rw-  1 root  wheel   30,  11 27 Jan 10:59 /dev/dspr0.0
>
>[riggs] ~ > ll /dev/dsp
>crw-rw-rw-  1 root  wheel   30,   3 27 Jan 14:46 /dev/dsp
>
>Could somebody explain to me why the device isn't listed in the first
>ls -l call?

Hehe: welcome to clonable devices :-)

Notice that the major/minor is 3/27 which maps to /dev/dsp0.0.

/dev/dsp is a cloned device which gives you the first free /dev/dsp*
device.

cloned devices do not appear in readdir requests, that's why you don't
see it with "ls -l /dev/dsp*"

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to