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

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

* Bart Trojanowski <bart-oclug [ at ] jukie [ dot ] net> [081104 10:06]:
>     #define _IOC(dir,type,nr,size) \
>             (((0)    << 22) | \

that was supposed to read dir << 22.

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

-Bart

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