Re: /dev/sndstat

Adam D. Bradley (artdodge@cs.bu.edu)
Mon, 1 Dec 1997 13:32:10 -0500 (EST)


> > Yes, it's a device node and not a /proc filesystem entry. The reason
> > is to maximize the portability of the OSS code (they make money
> > selling it for other Unix variants...)
> >
>
> What about moving it to /proc/sound and creating a symbolic link
> /dev/sndstat -> /proc/sound for backwards compatibility? I think
> /proc/sound is much more elegant.

No, that breaks portability (consider platforms with no /proc fs, or
one that doesn't support text-file-like /proc entries). Doing it the
other way around, however (/proc/sndstat -> /dev/sndstat) would be
simple to implement and wouldn't require any modifications to the
sound driver. Personally, I don't think it's worth the effort.
(Plus, that would be policy implemented in kernel-space. Once again,
a layering filesystem could allow some more elegant approaches...
which is #5 on my list of "huge fun projects I wish I had time to
implement"...)

Adam

--
Things look so bad everywhere      Adam D. Bradley      artdodge@cs.bu.edu
In this whole world what is fair        Boston University Computer Science
We walk blind and we try to see             Ph.D. student and Linux hacker
Falling behind in what could be  ---->  Bring me a Higher Love  ---->  <><