Subject: Re: config_attach_pseudo(cfdata, aux)
To: None <tech-kern@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-kern
Date: 03/21/2006 03:50:56
On Mon, Mar 20, 2006 at 21:12:24 +0000, Iain Hibbert wrote:

> This is for Bluetooth HID support. After I aborted trying to inject events
> directly, I have a control file /dev/bthidctl that does nothing but take
> ioctl(BTHID_ATTACH, bthid_attach_args). The ioctl code, after checking the
> input, creates a new instance of pseudo-device bthidev to represent the
> HID device, but I have the attach_args that configure it, which consists
> of the device address, the HID descriptor, the address of the local device
> which is used to contact it, and the channel numbers it wants to be
> contacted on plus a couple of flags.

Why don't you make it a real device that attaches to the device you
use for /dev/bthidctl.  Just declare the former to attach to an
interface and the latter to provide the interface in your files.*.

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen