Thread (3 messages) 3 messages, 2 authors, 2003-09-17

Re: [PATCH] cyber2000fb: New framebuffer_alloc API and class_dev changes

flat view

From: James Simmons <hidden>
Date: 2003-09-17 20:14:09

quoted
quoted
- fbmem.c is responsible for managing the lifetime of the fb_info structure,
  and the lifetime of the driver-private data is equal to the lifetime
  of the fb_info structure.
This is not always the case. For dual headed graphics cards you can have 
two struct fb_info and one driver-private data. If the fbdev driver
releases one framebuffer you still have one framebuffer left that is using 
the driver-private data.
If this is not true, then how can anyone even be thinking about applying
the sysfs / driver model to the framebuffer drivers.

Unless this sort of data lifetime rules are clearly and unabiguously
defined, there is no way that a sysfs / driver model "port" will ever
come anywhere near being stable.
Sorry about the earlier email sent too early. 

   I'm attempting to look long term. We will have graphics cards with 
built in video as well. Plus 3D stuff. So my attempt was to create a driver 
core that was independent of any api. Then we would have mappers to 
different api's (fbdev/v4l etc). Thus different api sturctures could share 
the same core.  
   As for sysfs. I really don't see the need to export a par to userspace. 
In fact it could be dangerous to mess with. Now fb_info is important to 
export to userspace.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help