diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 19:55:15 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 19:55:15 -0400 |
| commit | 253e67c8b3a72b3a4757fdbc5845297628db0a4a (patch) | |
| tree | adf53b66087aa30dfbf8bf391a1dadb044c3bf4d /static/netbsd/man9/proc_find.9 3.html | |
| parent | a9157ce950dfe2fc30795d43b9d79b9d1bffc48b (diff) | |
docs: Added All NetBSD Manuals
Diffstat (limited to 'static/netbsd/man9/proc_find.9 3.html')
| -rw-r--r-- | static/netbsd/man9/proc_find.9 3.html | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/static/netbsd/man9/proc_find.9 3.html b/static/netbsd/man9/proc_find.9 3.html new file mode 100644 index 00000000..7f11e854 --- /dev/null +++ b/static/netbsd/man9/proc_find.9 3.html @@ -0,0 +1,59 @@ +<table class="head"> + <tr> + <td class="head-ltitle">PROC_FIND(9)</td> + <td class="head-vol">Kernel Developer's Manual</td> + <td class="head-rtitle">PROC_FIND(9)</td> + </tr> +</table> +<div class="manual-text"> +<section class="Sh"> +<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1> +<p class="Pp"><code class="Nm">proc_find</code>, + <code class="Nm">pgrp_find</code> — <span class="Nd">find process or + process group</span></p> +</section> +<section class="Sh"> +<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1> +<p class="Pp"><code class="In">#include + <<a class="In">sys/proc.h</a>></code></p> +<p class="Pp"><var class="Ft">struct proc *</var> + <br/> + <code class="Fn">proc_find</code>(<var class="Fa" style="white-space: nowrap;">pid_t + pid</var>);</p> +<p class="Pp"><var class="Ft">struct pgrp *</var> + <br/> + <code class="Fn">pgrp_find</code>(<var class="Fa" style="white-space: nowrap;">pid_t + pgid</var>);</p> +<p class="Pp"><var class="Va">extern kmutex_t *proc_lock;</var></p> +</section> +<section class="Sh"> +<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1> +<p class="Pp">The + <a class="permalink" href="#proc_find"><code class="Fn" id="proc_find">proc_find</code></a>() + and + <a class="permalink" href="#pgrp_find"><code class="Fn" id="pgrp_find">pgrp_find</code></a>() + functions retrieve process and process group structures from process ID + <var class="Fa">pid</var> and process group ID <var class="Fa">pgid</var>. + Both functions must be called by holding a <a class="Xr">mutex(9)</a> on + <var class="Va">proc_lock</var>.</p> +</section> +<section class="Sh"> +<h1 class="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN + VALUES</a></h1> +<p class="Pp">Upon successful completion, the described functions return a + pointer to either <i class="Em">struct proc</i> or <i class="Em">struct + pgrp</i>. Otherwise, if the requested ID was not found, + <code class="Dv">NULL</code> is returned.</p> +</section> +<section class="Sh"> +<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE + ALSO</a></h1> +<p class="Pp"><a class="Xr">curproc(9)</a></p> +</section> +</div> +<table class="foot"> + <tr> + <td class="foot-date">July 1, 2010</td> + <td class="foot-os">NetBSD 10.1</td> + </tr> +</table> |
