*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: _PHOLD | Section: 9 | Source: FreeBSD | File: _PHOLD.9.gz
PHOLD(9) FreeBSD Kernel Developer's Manual PHOLD(9) NAME PHOLD - hold a process SYNOPSIS #include <sys/proc.h> PHOLD(struct proc *p); _PHOLD(struct proc *p); PRELE(struct proc *p); _PRELE(struct proc *p); PROC_ASSERT_HELD(struct proc *p); PROC_ASSERT_NOT_HELD(struct proc *p); DESCRIPTION The PHOLD() macro increments the hold count of a process, and the PRELE() macro decrements the hold count of a process. If a process with a non-zero hold count attempts to exit, it will sleep until its hold count has reached zero before the kernel begins releasing resources associated with the process. Once a process has started exiting, it is invalid to increase its hold count. Thus, callers must not attempt to hold a process that has the P_WEXIT flag set. The VM daemon will not swap out the kernel stack of a thread belonging to a process with a non-zero hold count. The _PHOLD() and _PRELE() macros are identical to PHOLD() and PRELE(), except that they must be called with the process lock held. AUTHORS This manual page was written by Mark Johnston <[email protected]>. FreeBSD 14.1-RELEASE-p8 November 7, 2015 FreeBSD 14.1-RELEASE-p8

Navigation Options