> I'm using FC5, our graphic card's framebuffer driver's ioctl function
> work abnormally.I mean
> our framebuffer driver provide extending ioctl command. But the ioctl
> cmd can't be transport correctly from user space to kernel space, ie,if
> I ioctl(fd,0x123456,&arg) in user space, the kernel space can not get
> the cmd 0x12345, but a totally different number.
You can't just use any number, be sure to use the 'F' (0x46) identifier for
framebuffer devices. See also Documentation/ioctl-number.txt.
Also, look at drivers that has their own ioctl's for help, such as matroxfb