Date: Thu, 08 Jan 2009 21:50:47 -0800 From: perryh@pluto.rain.com To: uspoerlein@gmail.com Cc: freebsd-hackers@freebsd.org, guru@unixarea.de, vladimirt@partygaming.com Subject: Re: /dev/dsp* & /dev/audio* devices not present Message-ID: <4966e5b7.sTBBp%2BJY%2BDDMKG47%perryh@pluto.rain.com> In-Reply-To: <20090108080708.GE1462@roadrunner.spoerlein.net> References: <20090107181032.GA2808@rebelion.Sisis.de> <1231398405.2842.1.camel@daemon2.partygaming.local> <20090108080708.GE1462@roadrunner.spoerlein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Ulrich Spoerlein <gmail.com!uspoerlein@agora.rdrop.com> wrote: > Please run > % cat /dev/sndstat > % ls -l /dev/dsp0 /dev/dsp0.0 > > The reason you are not seeing them with 'ls /dev/dsp*' is because > devfs is creating the nodes when they are open(2)'ed. Using shell > globbing will search the output of readdir(2) for matches to dsp* > where devfs has no way of dynamically creating nodes (which ones > should it create anyway?) In principle, everything that would be successfully created if open(2)'ed. It doesn't necessarily need to actually create them, but the results from readdir(2) should be as if they had been created. The whole point of things like ls(1) and readdir(2) is to find out what-all is available to be opened, without having to already know the answer. > This is a FAQ really. It may be an FAQ, but it is also a bug, granted one that may not be easy to fix.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4966e5b7.sTBBp%2BJY%2BDDMKG47%perryh>