File:  [MW Coherent from dump] / coherent / f / usr / man / KERNEL / lock
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:40 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

lloocckk() -- Accessible Kernel Routine

#iinncclluuddee <ssyyss/ttyyppeess.hh>
vvooiidd
lloocckk(_g)
GGAATTEE _g;

lloocckk() 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 sslleeeepp(), lloocckk() 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
aacccceessssiibbllee kkeerrnneell rroouuttiinneess

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.