Bell 32V development
[unix-history] / usr / man / man2 / lock.2
CommitLineData
6ebc7da6
TL
1.TH LOCK 2 local
2.SH NAME
3lock \- lock a process in primary memory
4.SH SYNOPSIS
5.B lock(flag)
6.SH DESCRIPTION
7If the
8.I flag
9argument is non-zero,
10the process executing this call
11will not be swapped except if it is required
12to grow.
13If the argument is zero,
14the process is
15.RI un lock ed.
16This call may only be executed by
17the super-user.
18.SH BUGS
19.IR Lock ed
20processes interfere with the compaction of primary memory
21and can cause deadlock.
22This system call is not considered
23a permanent part of the system.
24.SH ASSEMBLER
25(lock = 53.)
26.br
27.B sys lock; flag