Messages in this thread | | | Subject | Re: Q2: Framebuffer? | From | Jes Sorensen <> | Date | 17 Feb 1999 11:22:30 +0100 |
| |
>>>>> "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/
| |