Re: how to handle fb_ioctl
Geert Uytterhoeven <[email protected]> Sun, 4 Feb 2007 20:37:07 +0100 (CET)
| Newsgroups | gmane.linux.fbdev.user |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 4 Feb 2007, Juergen Beisert wrote:
> sorry, here comes an additional question about the fb framework:
> I'm confused about the fb_ioctl entry in the fb_ops structure. When I want to
> add my own driver specific IOCTLs, how to do it? If I setup my own function
> into the fb_ioctl entry, does it _add_ my IOCTLs to the existing ones or does
> it replace framework's IOCTLs (so my function must also handle the existing
> ones)? Or does the framework calls my private IOCTL handler via fb_ioctl if
> an unknown IOCTL enters the existing IOCTL handler?
It adds you ioctls, by calling your fb_ioctl() if an unknown ioctl enters the
existing ioctl handler (cfr. drivers/video/fbmem.c:fb_ioctl()).
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642