From: Geert Uytterhoeven <geert@linux-m68k.org>
To: "Scott D. Davilla" <davilla@4pi.com>
Cc: Linux Frame Buffer Device Development
<linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: framebuffer questions
Date: Sun, 10 Feb 2008 12:11:22 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.0802101210040.31187@anakin> (raw)
In-Reply-To: <p06230914c3d3bdda5250@[192.168.9.5]>
On Sat, 9 Feb 2008, Scott D. Davilla wrote:
> 1) "info = framebuffer_alloc(sizeof(u32) * 16, &dev->dev)" is used to
> allocate memory for the framebuffer info structure (struct fb_info
> *info).
>
> struct fb_info is greater than 16 * sizeof(u32) so it seems this
> should be "info = framebuffer_alloc(sizeof(struct fb_info),
> &dev->dev)" or imacfb is going to be read/writing beyond what was
> allocated. Side note efifb.c has this same code as it was derived
> from imacfb.
That's OK. `sizeof(u32) * 16' is the amount of extra private memory used by
the driver, in addition to sizeof(struct fb_info).
> 3) imacfb (and efifb) do not any removal routines for unloading the
> module. So what happens when X11 takes over? Should there be an
> removal routine for unloading? The console video buffer is still
> mapped (screen_base). How does X11 know not to use this area? What
> does X11 do regarding the console framebuffer when it runs and it is
> does not unlaod the console module, how does it avoid using the
> console mapped video memory?
X and imacfb will coexist and use the same memory.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2008-02-10 11:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-09 21:12 framebuffer questions Scott D. Davilla
2008-02-10 11:11 ` Geert Uytterhoeven [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-03-15 21:10 Framebuffer questions Ondrej Zajicek
2006-03-16 1:20 ` Antonino A. Daplas
2006-03-16 10:17 ` Ondrej Zajicek
2006-03-16 21:26 ` Antonino A. Daplas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0802101210040.31187@anakin \
--to=geert@linux-m68k.org \
--cc=davilla@4pi.com \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox