DragonFly BSD
DragonFly kernel List (threaded) for 2006-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

device clone on open

From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Sun, 15 Jan 2006 00:49:25 +0100


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   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]