linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Strange iotcl operation
@ 2006-06-22  1:36 twomol
  2006-06-22 12:00 ` Antonino A. Daplas
  0 siblings, 1 reply; 2+ messages in thread
From: twomol @ 2006-06-22  1:36 UTC (permalink / raw)
  To: linux-fbdev-devel


[-- Attachment #1.1: Type: text/plain, Size: 514 bytes --]

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.
 
 

[-- Attachment #1.2: Type: text/html, Size: 1141 bytes --]

[-- Attachment #2: Type: text/plain, Size: 280 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 182 bytes --]

_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Strange iotcl operation
  2006-06-22  1:36 Strange iotcl operation twomol
@ 2006-06-22 12:00 ` Antonino A. Daplas
  0 siblings, 0 replies; 2+ messages in thread
From: Antonino A. Daplas @ 2006-06-22 12:00 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: twomol

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

twomol wrote:
> 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


[-- Attachment #2: Type: text/plain, Size: 280 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 182 bytes --]

_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-22 12:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-22  1:36 Strange iotcl operation twomol
2006-06-22 12:00 ` Antonino A. Daplas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).