.th K_walk_process_table II 4/21/86
.sh NAME
K_walk_process_table - obtain the SEIDS of active processes
.sh "MODULA SYNOPSIS"
.nh
.na
 CONST index: cardinal;
.br
 VAR p_seid: seid;
.br
 VAR stat: K_err_num;
.br
 . . .
.br
 stat := NK_walk_process_table(index, p_seid);
.br
.hy
.ad
.sp
.sh "C SYNOPSIS"
.nh
.na
 cardinal index;
.br
 seid p_seid;
.br
 int stat;
.br
 . . .
.br
 stat = K_walk_process_table (index, &p_seid);
.br
.hy
.ad
.sh DESCRIPTION
The K_walk_process_table primitive is a means for privileged software
to obtain the SEIDs of active processes.  The primitive returns the
SEID of the process which occupies slot index of the global process
table.  This SEID can then be used in K_get_object_level or
K_get_process_status calls.  The call fails if the process does not
possess the privilege to issue it, or if index is not a valid index
number for the process table.
.sh EXCEPTIONS
.lp 22 15
XbadSlot	Index out of range.
.lp 22 15
Xempty	No process with given index.
.lp 22 15
XnoPriv	Process does not have the privWalkTable privilege.
.sh "SEE ALSO"
K_get_object_level(II),
K_get_process_status(II),
seid(IIa)
