<def f='src/src/sys/kern/kern_proc.c' l='132' ll='136'/>
<size>24</size>
<doc f='src/src/sys/kern/kern_proc.c' l='120'>/*
 * pid to proc lookup is done by indexing the pid_table array.
 * Since pid numbers are only allocated when an empty slot
 * has been found, there is no need to search any lists ever.
 * (an orphaned pgrp will lock the slot, a session will lock
 * the pgrp with the same number.)
 * If the table is too small it is reallocated with twice the
 * previous size and the entries &apos;unzipped&apos; into the two halves.
 * A linked list of free entries is passed through the pt_proc
 * field of &apos;free&apos; items - set odd to be an invalid ptr.
 */</doc>
