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

Re: Multiple sounds


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Wed, 23 Aug 2006 14:21:19 +0200
Mail-followup-to: users@crater.dragonflybsd.org

On Wed, Aug 23, 2006 at 01:29:24PM +0200, Simon corecode Schubert wrote:
> +++ Joerg Sonnenberger [22/08/06 15:23 +0200]:
> > On Tue, Aug 22, 2006 at 12:27:38PM +0200, Simon 'corecode' Schubert wrote:
> > > On 21.08.2006, at 15:14, Joerg Sonnenberger wrote:
> > > >>Well, I investigated doing this at some point, but it seemed quite
> > > >>impossible at this time.  We'd have to change the device handling, so
> > > >>that a driver can hand out private devices for an open and not have
> > > >>just one device per major/minor.
> > Check for lwp_dupfd.
> 
> uhm, yes.  but this is marked as XXX UGLY everywhere, and i have to agree
> that it *is* ugly.  we should streamline this a little bit i think.  How
> about passing the device as a pointer so it can be modified by dev_open, or
> passing the fd to be able to change the details and some service routines?

Take a look at the device cloning interface in NetBSD, that might be a
good idea.

Joerg



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