On Fri, 21 Sep 2007, Joachim Worringen wrote:
>
> Greetings,
>
> while processing my driver code in user context, is there a way to check
> if a signal is pending for the process? I can check for the ability to
> receive signals using ddi_can_receive_sig(9F), and see if I was signaled
> while waiting on condition variable - but is there a way to "poll" for a
> signal?
This comes to mind:
if (cv_timedwait_sig(cv, mtx, ddi_get_lbolt()) == 0)
/* signal pending */
but my mind rings 'hacky' bells on seeing this ...
The low-level method, outside of DDI, exists of course, ISSIG() and
related macros ...
Why do you need to know this in a driver, how should behaviour be
different ?
FrankH.
>
> "Writing Device Drivers" seems not to cover this topic at all.
>
> thanks, Joachim
>
> --
> Joachim Worringen, Software Architect, Dolphin Interconnect Solutions
> phone ++49/(0)228/324 08 17 - http://www.dolphinics.com
> _______________________________________________
> opensolaris-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
>
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code