Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (3779 KB)
plock(3C)Name | Synopsis | Description | Return Values | Errors | Usage | Attributes | See Also Name
Synopsis#include <sys/lock.h> int plock(int op); Description
The plock() function allows the calling process to lock or unlock into memory its text segment (text lock), its data segment (data lock), or both its text and data segments (process lock). Locked segments are immune to all routine swapping. The effective user ID of the calling process must be super-user to use this call. The plock() function performs the function specified by op: Return ValuesUpon successful completion, 0 is returned. Otherwise, -1 is returned and errno is set to indicate the error. Errors
The plock() function fails and does not perform the requested operation if: UsageThe mlock(3C) and mlockall(3C) functions are the preferred interfaces for process locking. AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSunOS 5.10 Last Revised 22 Mar 2004Name | Synopsis | Description | Return Values | Errors | Usage | Attributes | See Also |
||||