> > At current count we need 6 ioctls for the memory manager. However, > > there are only 5 available ioctl numbers available below 0x40. Is it > > possible to use numbers above 0x79? > > I count 0x08-0x0f, 0x1e-0x1f, 0x2d-0x2f, 0x3b-0x3f, or 18. While it > should be doable to use numbers 0x80 and up, there may be cases such as > inside the kernel where we're comparing an ioctl against 0x40 and > looking at the driver's set if it's >=. We'll have to poke around > before deciding, I think.
Yeah like here: if (nr < DRIVER_IOCTL_COUNT) ioctl = &drm_ioctls[nr]; else if ((nr >= DRM_COMMAND_BASE) && (nr < DRM_COMMAND_BASE + dev->driver->num_ioctls)) I'd go with filling in the gaps in the current 0x40 region.. Dave. -- David Airlie, Software Engineer http://www.skynet.ie/~airlied / airlied at skynet.ie Linux kernel - DRI, VAX / pam_smb / ILUG ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel