LWN.net Logo

Re: fbdev sysfs support.

From:  viro-AT-parcelfarce.linux.theplanet.co.uk
To:  James Simmons <jsimmons-AT-infradead.org>
Subject:  Re: fbdev sysfs support.
Date:  Sat, 7 Feb 2004 01:29:04 +0000
Cc:  Greg KH <greg-AT-kroah.com>, Linus Torvalds <torvalds-AT-transmeta.com>, Linux Fbdev development list <linux-fbdev-devel-AT-lists.sourceforge.net>, Linux Kernel Mailing List <linux-kernel-AT-vger.kernel.org>

On Sat, Feb 07, 2004 at 01:23:29AM +0000, James Simmons wrote:
> 
> > This function will not get called until the sysfs node stops being busy,
> > so it should all work properly.  But only if that fb_info structure was
> > allocated dynamically, unlike all of the current fb drivers (see my
> > other comment about this patch.)
> > 
> > So in that case, this will cause us to try to call kfree on a static
> > structure :(
> 
> I plan to move every driver to framebuffer_alloc. 

Erm...  You know, it would be much better to do that _before_ sysfs-related
merge.  With framebuffer_release() being originally defined as kfree(),
so that no breakage would happen during the transition.  Once everything is
using dynamic allocation with framebuffer_alloc()/framebuffer_free(), add
sysfs bits.  That way you get the same total size of patches in the series
and avoid the breakage on intermediate stages...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


(Log in to post comments)

Copyright © 2004, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds