Re: fb_write missing in skeleton

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ran,

On Thu, Feb 4, 2016 at 10:22 AM, Ran Shalit <ranshalit@xxxxxxxxx> wrote:
> On Thu, Feb 4, 2016 at 10:16 AM, Geert Uytterhoeven
> <geert@xxxxxxxxxxxxxx> wrote:
>> On Wed, Feb 3, 2016 at 9:54 PM, Ran Shalit <ranshalit@xxxxxxxxx> wrote:
>>> Is there any reason why fb_write is missing in skeletonfb.c  ?
>>> Isn't it required ?
>>
>> No, it's not required, cfr. the comments in include/linux/fb.h:
>>
>>         /* For framebuffers with strange non linear layouts or that do not
>>          * work with normal memory mapped access
>>          */
>>         ssize_t (*fb_read)(struct fb_info *info, char __user *buf,
>>                            size_t count, loff_t *ppos);
>>         ssize_t (*fb_write)(struct fb_info *info, const char __user *buf,
>>                             size_t count, loff_t *ppos);
>>
>> If not implemented, drivers/video/fbdev/core/fbmem.c:fb_write() will use
>> normal memory mapped access.

> But When we do:
>     > cp mybitmap > /dev/fb0
> Which method is called (isn't fb_write is called) ?

drivers/video/fbdev/core/fbmem.c:fb_write()

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

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
--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Tourism]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux