From: Kronos <kronos@kronoz.cjb.net>
To: Sven Luther <sven.luther@wanadoo.fr>
Cc: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: framebuffer_{alloc,release}
Date: Wed, 17 Sep 2003 17:47:35 +0200 [thread overview]
Message-ID: <20030917154735.GA3615@dreamland.darkstar.lan> (raw)
In-Reply-To: <20030917085257.GA2613@iliana>
Il Wed, Sep 17, 2003 at 10:52:57AM +0200, Sven Luther ha scritto:
> On Tue, Sep 16, 2003 at 09:27:53PM +0200, Kronos wrote:
> > Hi,
> > this is a new version of the new framebuffer_alloc API. It is based on the
> > feedback I had (thanks to Russel King).
> >
> > framebuffer_alloc is unchanged, driver specific release callback is
> > gone. struct fb_info won't go away until we drop the refcount with a new
> > function. I think that framebuffer_free can be misleading as it doesn't
> > free anything, so I named it framebuffer_release.
>
> Just a quick question about this. I didn't really follow this thread,
> but it seem to me that you are implementing a sort of reference counting
> memory allocation, or something such.
We are talking about controlling lifetime of framebuffer info structure
(struct fb_info). This structure contains a description of framebuffer
(current mode, timings, color map, etc.). We want to register this
structure with the driver core so that drivers can export whatever they
want using sysfs.
> If so, it has been proven that exploratory garbage collection is more
> effective than reference-sounting in normal programming, even in
> imperative languages like C. I don't know if these results will apply as
> well in this case which handles framebuffer memory (or perhaps also the
> texture memory the DRI framework uses ?).
Framebuffer memory (ie. the place where we draw) is the video board
memory, we just map it upon load and unmap it on exit. AFAIK only
virtual framebuffer uses vmalloc() for its framebuffer memory.
Luca
--
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net
Se il destino di un uomo e` annegare, anneghera` anche in un bicchier
d'acqua.
Proverbio yddish
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
next prev parent reply other threads:[~2003-09-17 15:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-16 19:27 framebuffer_{alloc,release} Kronos
2003-09-17 8:52 ` framebuffer_{alloc,release} Sven Luther
2003-09-17 15:47 ` Kronos [this message]
2003-09-17 19:11 ` framebuffer_{alloc,release} James Simmons
-- strict thread matches above, loose matches on Subject: below --
2003-09-18 16:01 framebuffer_{alloc,release} Kronos
2003-09-22 21:24 ` framebuffer_{alloc,release} James Simmons
2003-09-23 15:49 ` framebuffer_{alloc,release} Kronos
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=20030917154735.GA3615@dreamland.darkstar.lan \
--to=kronos@kronoz.cjb.net \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=sven.luther@wanadoo.fr \
/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;
as well as URLs for NNTP newsgroup(s).