Path: utzoo!attcan!craig From: craig@attcan.UUCP (Craig Campbell) Newsgroups: comp.unix.questions Subject: Re: plock() Keywords: System V, 3B2, C Message-ID: <13199@vpk4.UUCP> Date: 10 Dec 90 20:42:06 GMT References: Reply-To: craig@vpk4.ATT.COM (Craig Campbell) Distribution: usa Organization: AT&T Canada Inc., Toronto Lines: 46 In article mef@remus.rutgers.edu (Marc E. Fiuczynski) writes: >Does anyone know have a man page on plock() funciton? >As far as I know it is supposed to give a process very >highpriority!!! I remember seeing it used on a 3B2 running >SVR3.2.1. >-- >================================================================================ >Marc Fiuczynski | mef@remus.rutgers.edu > | mef@klinzhai.rutgers.edu >Rpo 5814, Po Box 5063 | >New Brunswick, NJ 08903 | Tel.: (908)/878-9388 >================================================================================ plock(2) - lock process, text, or data in memory #include int plock(op) int op; Description plock allows the calling process to lock its text segment (text locks), its data segment (data lock), or both its text and data segment (process lock) into memory. Locked segments are immune to all routine swapping. plock also allows these segments to be unlocked. The effective user iID of the calling process must be super-user to use this call. op specifies the following: PROCLOC lock text and data segments into memory (process lock) TXTLOCK lock text segment into memory (text lock) DATLOCK lock data segment into memory (data lock) UNLOCK removes locks. I'm tired of typing...... stuff omitted....... For return codes and reasons for failures, see the Programmer's Reference Manual, section 2. craig