Skip to contentSkip to conversation

Strange iotcl operation

DISCUSSION twomol 2 participants 2 messages Jun 22, 2006 Framebuffer layer

lore
Share & tools
lore

twomol

author
#0 lore raw

Hi,all
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. But if I use standard cmd such as FBIOGET_VSCREENINFO, it work normally.
By the way, My framebuffer driver work on FC4
Any Suggestion is appreciate.

All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642

_______________________________________________
Linux-fbdev-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

#1 lore raw
Quoted 7 lines · twomol

Hi,all
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 (drivers/video/matrox/matroxfb_base.c).

Tony

All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642

_______________________________________________
Linux-fbdev-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel