Annotation of coherent/a/usr/man/COHERENT/lock, revision 1.1

1.1     ! root        1: 
        !             2: 
        !             3: lock()                 COHERENT System Call                lock()
        !             4: 
        !             5: 
        !             6: 
        !             7: 
        !             8: Prevent process from swapping
        !             9: 
        !            10: lloocckk(_f_l_a_g)
        !            11: iinntt _f_l_a_g;
        !            12: 
        !            13: The  COHERENT system  can swap  a process in  and out  of memory.
        !            14: However, real-time response  sometimes requires that a process be
        !            15: locked in memory.
        !            16: 
        !            17: When  called  with  a nonzero  flag,  lock  prevents the  calling
        !            18: process from  swapping (unless  swapping is required  to increase
        !            19: its memory  size).  Calling lock with a flag  of zero unlocks the
        !            20: process.
        !            21: 
        !            22: This call  is restricted to  the superuser.  Processes  doing raw
        !            23: I/O are automatically locked  into memory for the duration of the
        !            24: I/O operation.
        !            25: 
        !            26: ***** See Also *****
        !            27: 
        !            28: COHERENT system calls, ps, swap
        !            29: 
        !            30: ***** Diagnostics *****
        !            31: 
        !            32: lock  returns zero  if it  performs the  indicated action  and -1
        !            33: otherwise.  An error occurs if the caller is not the superuser.
        !            34: 
        !            35: ***** Notes *****
        !            36: 
        !            37: The existence of  several locked processes may cause memory frag-
        !            38: mentation.   Therefore, all  locked processes  should  be created
        !            39: just after  the system is booted, if  possible.  In general, lock
        !            40: should be avoided if any alternative exists.
        !            41: 
        !            42: 
        !            43: 
        !            44: 
        !            45: 
        !            46: 
        !            47: 
        !            48: 
        !            49: 
        !            50: 
        !            51: 
        !            52: 
        !            53: 
        !            54: 
        !            55: 
        !            56: 
        !            57: 
        !            58: 
        !            59: 
        !            60: 
        !            61: 
        !            62: 
        !            63: 
        !            64: COHERENT Lexicon                                           Page 1
        !            65: 
        !            66: 

unix.superglobalmegacorp.com

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