linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* reading pixel data from kernelspace
@ 2006-10-09  0:04 Nathan King
  0 siblings, 0 replies; only message in thread
From: Nathan King @ 2006-10-09  0:04 UTC (permalink / raw)
  To: linux-fbdev-devel


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

Hey folks,

I'm messing with some virtual framebuffering, and had a question. When in
userspace, if I want to read the contents of the framebuffer I just do a

open("/dev/fb0",O_RDONLY)

and I've got a nice clean capture of the screen. Where, however, does this
data live in kernelspace? My vfb driver declares a pointer and then
allocates whatever memory the display needs, basically
width*height*bytes_per_pixel bytes. A lot like the variable "videomemory" in
drivers/video/vfb.c.  If I try to copy this data, however, it comes out
garbled. Some parts look a little like the original, but most of it is
pretty random. Is there another home for this pixel data somewhere? I tried
reading from info->screen_base, but got exactly the same results.

Much thanks,
Nathan

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

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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- 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] only message in thread

only message in thread, other threads:[~2006-10-09  0:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-09  0:04 reading pixel data from kernelspace Nathan King

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).