lloocckk() -- Accessible Kernel Routine

#iinncclluuddee <ssyyss/ttyyppeess.hh>
vvooiidd
lloocckk(_g)
GGAATTEE _g;

lloocckk() waits for  the gate _g to unlock, then  locks it.  When the gate of a
system resource is locked, no  other processes can use the resource.  Gates
must be  in the kernel's  data segment, not  on the stack.   Because it may
call sslleeeepp(), lloocckk() must _n_e_v_e_r  be called from an interrupt handler, block
routine, deferred function, or timed function.

_S_e_e _A_l_s_o
aacccceessssiibbllee kkeerrnneell rroouuttiinneess
