I'm wading through DRM context switches at the kernel level now.
I've gotten lost a bit -- I'm missing a chunk o stuff at the
(*) point.



User wants a "context switch" to happen.
Calls ioctl(DRM_IOCTL_SWITCH_CTX)

 Kernel goes into DRM(context_switch)
  Sets an internal "current context" Variable
  Usually writes out "C oldnum newnum" to user fd
     (which has the user sideeffect of triggering SIGIO)


  (*)Kernel  (goes to sleep? "wakes something up"???)
  until user does another ioctl, this time with ioctl(DRM_IOCTL_NEW_CTX)
    [what is dev->context_wait for?]


  [the second ioctl triggers DRM(context_switch_complete), which does
   something to dev->context_wait  again]


I dont get why there is a need for both DRM_IOCTL_SWITCH_CTX and
DRM_IOCTL_NEW_CTX

And what does DRM_FLAG_NOCTX really signify?



-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to