pl value returned by the corresponding call to
lock_callback( ).
Return values
lock_callback( )
returns the
pl(D5)
priority level at which the routine was called.
This value is used later by the
unlock_callback( )
function.
unlock_callback( )
has no return value.
Usage
These routines are required in HPCD drivers.
Code that examines or modifies the
hpci_hpcd_t(D4hpci)
structure is considered critical code that must execute atomically
to preserve the integrity of the shared data structures.
lock_callback( )
sets the lock, and
unlock_callback( )
releases the lock.
The relevent data structures are populated with these callback routines
as part of hpci_attach() in CFG_ADD.
See
``Critical code section''.