from modes and modules

Franz Reinhardt <[email protected]>
Newsgroups gmane.linux.fbdev.user
Organization wenglor sensoric gmbh
Message-ID <[email protected]>
Hi,

After playing around with the framebuffer driver of an Epia V board 
(tridentfb), there are several questions about framebuffer drivers at 
all. I would be lucky, if I could get some comments from the 
developers.

As I have loaded a framebuffer as module with insmod I discovered, that 
only the default mode is possible, because fb_find_mode from modedb.c 
is replaced by an inline function from <linux/fb.h> ;-)  After that I'm 
willing to do some additional docs to the kernel sources .....
The documented modes are only available, when the driver is compiled 
into the kernel...

If I change the mode on a virtual console (using fbset), and then try to 
remove the driver, I will get a kernel freeze (no oops!). After 
thinking about it, I don't know if it's possible at all to remove a 
framebuffer module, because it may be used by the console driver. 
Unfortunately there is no MOD_INC_USE_COUNT to make this safe.

So my question is: How can I safely insert and remove a framebuffer 
driver module ?

TIA,

Franz






-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.