Source-Changes archive

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

Re: CVS commit: src



On Sun, 20 Aug 2006, Quentin Garnier wrote:

> On Sun, Aug 20, 2006 at 07:06:58AM +0000, Iain Hibbert wrote:
> > Log Message:
> > Make btdev default count explicit
>
> Hard-coded limits are ugly.

Sometimes people want to apply limits though :)

With the current possibilities 4 should be enough for most needs (1 user,
1 keyboard, 1 mouse, 1 headset, 1 spare) and its fairly easy to change if
need be.

> Why don't you simply do the config_attach_pseudo in btdevopen?

> That way, you don't need sc_busy anymore;  the mere fact that there is
> a softc indicates that it's being used, and then you config_detach in
> btdevclose. The next step is to have a cloning char device, so that
> you only have one device node so you don't have to create btdev0,
> btdev1, etc.  You'd only have /dev/btdev and userland wouldn't have to
> know before hand which unit is used.

This wont work exactly - btdevctl(8) is used to configure the device but
its not a daemon and does not keep the device file open so you need to
know which device to interact with (may already exist). I used the minor
number as the device index because different devices use different
protocols and matching on the address alone will be difficult.

iain



Home | Main Index | Thread Index | Old Index