|
|
ms_lockstate_t os_mutex_lock(ms_lockp_t lockp)
Interrupts will be disabled by clearing the processor's internal interrupt enable flag on return. The returned value holds the previous state of the interrupt enable flag. It must be passed as an argument to a matching call to os_mutex_unlock(D3psm).
Simple locks may be nested. No core kernel functions except os_mutex_lock and os_mutex_unlock may be called while simple locks are being held. os_mutex_lock may not be called from pfxinitpsm.
ms_lockstate_t
opaque lock status to be passed
to the paired
os_mutex_unlock(D3psm).