Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jan 2003 09:49:25 +0100
From:      phk@freebsd.org
To:        "Thomas E. Zander" <riggs@rrr.de>
Cc:        current@freebsd.org
Subject:   Re: Am I blind? (devfs issue) 
Message-ID:  <20205.1043657365@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 27 Jan 2003 16:45:37 %2B0800." <20030127084537.GG1408@trillian.mugiri.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20030127084537.GG1408@trillian.mugiri.au>, "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
phk@FreeBSD.ORG         | 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20205.1043657365>