This document may have answers to some common questions.
childrennum
should meet the following criteriapid
is within the bound of proctab
, otherwise, it should return SYSERR
.pid
corresponds to an existing process (prptr->prstate != PR_FREE
), otherwise, it should return SYSERR
.syscall
as the return type, rather than uint16
, because
uint16
will result in an incorrect value being returned when returning SYSERR
because it corresponds to a negative number,pr_children
field of the process’s entry upon success.xdetour
For a process that registered a callback function we will only consider two cases where a detour is arranged