lkml.org 
[lkml]   [1999]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Q2: Framebuffer?
From
Date
>>>>> "Ben" == Ben Pfaff <pfaffben@pilot.msu.edu> writes:

Ben> Alex Riedel <riedel@taraz.kz> writes: 1) Can - whether the user
> program use Framebuffer Directly (etc. memcpy ()) or only through
> FB API?

Ben> The framebuffer API doesn't provide any functions for writing to
Ben> the framebuffer, actually. At least not AFAIK. In general, you
Ben> must mmap() the framebuffer device and write to it yourself.

Say again?

From drivers/video/fbmem.c:

static ssize_t
fb_write(struct file *file, const char *buf, size_t count, loff_t *ppos)
{

static ssize_t
fb_read(struct file *file, char *buf, size_t count, loff_t *ppos)
{

Yes you can read/write to the frame buffer memory, though in most
cases it makes a lot more sense to mmap() it and access it directly.

Jes

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.272 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site