Am I blind? (devfs issue)

2003-01-27 Thread Thomas E. Zander
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?

TIA
Riggs

P.S.
FreeBSD trillian.mugiri.au 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Wed Jan 22 23:19:13 WST 
2003

-- 
- Die Welt schläft tief schon lange Zeit | Sent with RiggiSmooth [tm] -
-- Mich nur flieht die Dunkelheit| - --
--- Denn per Infrarot seh ich| just to fit your ---
 Die Nacht ist wirklich widerlich.   | primitive screen.   

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



Re: Am I blind? (devfs issue)

2003-01-27 Thread phk
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



Re: Am I blind? (devfs issue)

2003-01-27 Thread Thomas E. Zander
Hi,

On Mon, 27. Jan 2003, at  9:49 +0100, [EMAIL PROTECTED] wrote
according to [Re: Am I blind? (devfs issue)]:

 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*

Okay, I understand.

Thanks for the quick answer.

Riggs

-- 
- [...] I talked to the computer at great length and
-- explained my view of the Universe to it said Marvin.
--- And what happened? pressed Ford.
 It committed suicide. said Marvin.

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