Re: Resource management.
From: James Simmons <hidden>
Date: 2005-02-21 23:25:21
On Tuesday 22 February 2005 03:11, James Simmons wrote:quoted
Hi! This is my first run at the resource management code. Comments are welcomed :-)Hi James, Where is this going to? What I see are performance penalties. For each putcs and cursor, it has to call fb_find_resource() which walks the linked list looking for a resource using strncmp(). What's the goal here?
So we don't end up with a struct fb_info constantly growing with struct fb_pixmaps. At present we have pixmap and sprite in struct fb_info. In the future we will have more. I need to create a pixmap for the framebuffer itself. This way we can have hooks for inbuf and outbuf to deal with issues of devices that have hardware restriction when writing to the framebuffer. The classic example is the Epson135X chipsets. You can only write/read 16 bits at a time with the framebuffer. Also in the future I plan to add DMA support. One approach to this is pci_pools. This would require multiple fb_pixmaps. One for each area for DMA you request. Of course we could have a static array of struct fb_pixmaps but there is no guarantee that the orders will be the same for each driver. Do you see any other solution to this then? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click