Re: netbt, Bluetooth kernel code

2013-07-12 Thread Tony Sidaway
On 13/07/2013, Theo de Raadt dera...@cvs.openbsd.org wrote:

 Whoa.  I think USB was just called a good model.

 Good? I'm not sure on that point.  A better idea for a model?  Yeah,
 kind of like much less worse.


I'll readily study any better model. But let's be realistic. I've
already started studying USB and I'm prepared to apply any useful
principles I find there in future code that may be submitted to
OpenBSD. If there is a good argument for further development of
Bluetooth in OpenBSD, in any case, it won't just be my enthusiasm.



netbt, Bluetooth kernel code

2013-07-11 Thread Tony Sidaway
I'm working on the netbt and /dev/bluetooth code, which is currently
broken and has been disabled in the generic kernel for over a year
now.

I'm not an experienced BSD developer (yet) so I'm using this code as a
way of learning how to debug and fix major problems. I'm also working
on updating the OpenBSD 5.0 ports bluetooth-libs and bluetooth-tools
to build and run on OpenBSD-current. Libs now builds, Tools needs a
rewrite of the Unix socket credentials check. The NetBSD Service
Discovery Protocol code still uses SCM_CREDS/struct sockcred, and this
has been removed from the OpenBSD tree as obsolete. But a moved to
SO_PEERCRED should work there.

So hi, and if there's anybody else looking at this code, please get in
touch. I hope I'll be able to fix the problems of the device sleeping
in mutexed code. If there is a high likelihood that this code will
soon be removed from the tree, that would be nice to know too. Maybe I
could change that.