device clone on open

Simon 'corecode' Schubert corecode at
Sat Jan 14 15:55:59 PST 2006


I'd like to implement device cloning on open, as that would be of great 
use for pcm:

We already have vchans, i.e. we can play multiple sound sources mixed at 
the same time, but programs need to open /dev/dsp0.{0,1,2,3} to do this.

It would be much more convenient if programs just could use /dev/dsp and 
the pcm driver hands out virtual channels as long as they are available.

For this to work, we'd have to change the vnode in the fp.  I'm a little 
bit confused how complicated this devices stuff is in the kernel.  Why 
do we need to route everything over vnodes anyways?  Whatever.

Is there a way to accomplish this?  Anybody got some ideas?

Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |      Against  HTML   \
Dude 2c 2 the max   !       Mail + News   / \

More information about the Kernel mailing list