plock()

James Cummings james at dlss2.UUCP
Tue Dec 11 00:30:31 AEST 1990


SYSNOPIS
	#include <sys/lock.h>
	int plock(op)
	int op;
DESCRIPTION
	plock allows the calling process to lock its text segment (text lock),
	its data segment (datalock), or both its text and data segments
	(process lock) into memory.  Locked segments are immune to all 
	routine swapping.  plock also allows these segments to be unlocked.
	The effective user ID of the calling process must be super-user to
	use this call Op specifies the following:
		PROCLOCK - process lock
		TXTLOCK  - text lock
		DATLOCK  - data lock
		UNLOCK   - remove locks

	Hope that helps.



More information about the Comp.unix.questions mailing list