* struct fb_ops functions and sleeping
@ 2006-07-14 20:47 Ondrej Zajicek
2006-07-14 23:33 ` Antonino A. Daplas
0 siblings, 1 reply; 2+ messages in thread
From: Ondrej Zajicek @ 2006-07-14 20:47 UTC (permalink / raw)
To: linux-fbdev-devel
[-- Attachment #1.1: Type: text/plain, Size: 718 bytes --]
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.
--
Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago@mail.cz, jabber: santiago@njs.netlab.cz)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 375 bytes --]
-------------------------------------------------------------------------
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
[-- Attachment #3: Type: text/plain, Size: 182 bytes --]
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: struct fb_ops functions and sleeping
2006-07-14 20:47 struct fb_ops functions and sleeping Ondrej Zajicek
@ 2006-07-14 23:33 ` Antonino A. Daplas
0 siblings, 0 replies; 2+ messages in thread
From: Antonino A. Daplas @ 2006-07-14 23:33 UTC (permalink / raw)
To: linux-fbdev-devel; +Cc: Ondrej Zajicek
Ondrej Zajicek wrote:
> 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
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-14 23:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-14 20:47 struct fb_ops functions and sleeping Ondrej Zajicek
2006-07-14 23:33 ` Antonino A. Daplas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).