yes, i will use mutexes in the kernel code. what i pasted was one function from a userland libusb-1 test program.

the imonSendCommand(); function encapsulates the control request.

Hans Petter Selasky wrote:
On Friday 27 August 2010 09:17:24 Jim Bryant wrote:
is this level of bit-fiddling acceptable in the kernel?

Yes, this is Ok.

One more thing: Add a mutex pointer argument to functions that can sleep.

Is the code you showed doing control requests?

--HPS

_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to