home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] device driver magic number for ioctl() in linux

One more time...

> >     #define _IOC(dir,type,nr,size) \
> >             (((0)    << 22) | \

For some reason I can neither add at 2am or before my 2nd cup of coffee.
16+14 is...

                (((dir) << 30) | \

> >              ((size) << 16) | \
> >              ((type) << 8) | \
> >              ((nr)   << 0))

-Bart

-- 
				WebSig: http://www.jukie.net/~bart/sig/