NPA_SpinUnlockRestore

Releases ownership of a previously acquired spin lock and restores processor interrupt state to the passed in value.

Thread Context:Non-Blocking

Syntax

    void NPA_SpinUnlockRestore (
       LONG  *lockStatus,
       LONG   CPUFlags
       );
    
    

Parameters

lockStatus
(IN) Address of the spin lock to be released.
CPUFlags
Interrupt state returned by NPA_SpinLockDisable or NPA_SpinTryLockDisable.

Remarks

NPA_SpinUnlockRestore should be called to release spin locks acquired by NPA_SpinLockDisable or NPA_SpinTryLockDisable. It is used to allow multiprocessor (MP) safe operations on shared data.