On Mon, 30 Apr 2007, Paul Durrant wrote:
This is a hypothetical question for me but one could imagine
encountering such a problem...
If I have, say, an i2c device that has a fairly short clock timeout
period (i.e. it loses interest if it's part way through a transaction
and doesn't see a clock edge for a certain period of time) what
mechanism could I use - within the Solaris DDI - to make sure a thread
accessing the device was not pre-empted thus causing such a timeout?
Outside of the DDI I have a few options it seems;
kpreempt_disable/enable or splhigh/splx perhaps. Within the DDI I've
not yet found anything.
Hmm - ddi_enter_critical / ddi_exit_critical ?
FrankH.
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code