Skip to contentSkip to conversation

struct fb_ops functions and sleeping

DISCUSSION Ondrej Zajicek 2 participants 2 messages Jul 14, 2006 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

Hello

I would like to ask whether there are any rules about context in which functions from struct fb_ops are called, particularly whether they can sleep and which functions may be called only between some fb_open and fb_release (for example from fbcon).

I tried to get working two graphics cards using VGA arbiter patch
(http://www.ussg.iu.edu/hypermail/linux/kernel/0503.1/0054.html)
After some hacking it worked, but without proper locking.

Signature · 5 lines
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: [email protected], jabber: [email protected])
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Linux-fbdev-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

#1 lore raw
Quoted 5 lines · Ondrej Zajicek

Hello

I would like to ask whether there are any rules about context in which functions from struct fb_ops are called, particularly whether they can sleep

Most of the functions can be called in process context (can sleep), except in some unlikely cases (printing an oops).

Of all the functions in there, make sure that fb_blank() cannot sleep.

and which functions may be called only between some fb_open

Quoted 1 line

and fb_release (for example from fbcon).

It's guaranteed that none of the functions will get called before an fb_open() or after a successful fb_release().

Tony

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642