From owner-freebsd-current Mon Jan 27 0:49:33 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B43837B401 for ; Mon, 27 Jan 2003 00:49:32 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 589BF43F13 for ; Mon, 27 Jan 2003 00:49:31 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h0R8nPQl020206; Mon, 27 Jan 2003 09:49:30 +0100 (CET) (envelope-from phk@freebsd.org) To: "Thomas E. Zander" Cc: current@freebsd.org Subject: Re: Am I blind? (devfs issue) From: phk@freebsd.org In-Reply-To: Your message of "Mon, 27 Jan 2003 16:45:37 +0800." <20030127084537.GG1408@trillian.mugiri.au> Date: Mon, 27 Jan 2003 09:49:25 +0100 Message-ID: <20205.1043657365@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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