Re: Snd_ich/pcm, Devfs or ls bug?

From: Andre Guibert de Bruet <andy_at_siliconlandmark.com>
Date: Thu, 1 Jan 2004 21:17:26 -0500 (EST)
On Thu, 1 Jan 2004, Ryan Sommers wrote:

> Came across this little oddity while playing with audio:
>
> root_at_lilshadow(/sys/dev/sound/pci):cd /dev
> root_at_lilshadow(/dev):ls -l mixer*
> crw-rw-rw-  1 root  wheel   30,   0 Jan  1 00:41 mixer0
> root_at_lilshadow(/dev):ls -l mixer
> crw-rw-rw-  1 root  wheel   30,   0 Jan  1 00:41 mixer
> root_at_lilshadow(/dev)
>
> I don't believe this is an ls(1) bug since an audio app couldn't find
> /dev/mixer. Trying to symlink mixer0 to mixer fails with file exists as
> well.
>
> If you need any more info let me know.
>
> PS If the problem is in ls(1) there is a patch on bin/59320 to fix a
> formatting issue with the '-h' option.

Ryan,

This is a FAQ. FreeBSD supports on-the-fly device creation. This means
that a device might exist when lstat() is called on it but it will not be
found when readdir() steps through the /dev directory.

Regards,

> Andre Guibert de Bruet | Enterprise Software Consultant >
> Silicon Landmark, LLC. | http://siliconlandmark.com/    >
Received on Thu Jan 01 2004 - 17:17:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:36 UTC