On Thu, Sep 27, 2001, David Nelson <[EMAIL PROTECTED]> wrote:
> I'm in the process of also cleaning up the IOCTL's in scanner.c.  I had
> "registered" for 128 (way overboard!) using 'N' but also see an entry for
> 'U' for use by USB.  Do we have an official allocation scheme/blocks
> somewhere?
> 
> As far as I can tell, only usbdevfs is the only one using 'U' (0-21).
> I'd like to use 32-48.  Is that Ok?  Or, do we have an official allocation
> scheme/block assingments somewhere?

Documentation/ioctl-number.txt

A quick snippet:

"If you are writing a driver for a new device and need a letter, pick an
unused block with enough room for expansion: 32 to 256 ioctl commands.
You can register the block by patching this file and submitting the
patch to Linus Torvalds.  Or you can e-mail me at <[EMAIL PROTECTED]> and
I'll register one for you."

If you're creating a custom kernel interface, you're probably better off
doing the driver in userspace since a kernel driver doesn't have any
advantages and a couple of disadvantages.

JE


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to