Specifications

Using Callable System Routines
10.3 System Services
Table 103 (Cont.) Summary of System Services
Service Function
Memory Management Services
$PURGWS Removes a specified range of pages from the current
working set of the calling process to make room for pages
required by a new program segment.
$SETPRT Allows a process to change the protection on a page or
range of pages.
$SETSTK Allows a process to change the size of its supervisor,
executive, and kernel stacks by altering the values in the
stack limit and base arrays held in P1 (per-process) space.
$SETSWM Allows a process to control whether it can be swapped out
of the balance set.
$ULKPAG Unlocks pages that were previously locked in memory by
the Lock Pages in Memory ($LCKPAG) service.
$ULWSET Unlocks pages that were previously locked in the working
set by the Lock Pages in Working Set ($LKWSET) service.
$UPDSEC (and $UPDSECW) Writes all modified pages in an active private or global
section back into the section file on disk (and wait).
Process Control Services
$CANEXH Deletes an exit control block from the list of control blocks
for the calling access mode.
$CANWAK Removes all scheduled wakeup requests for a process from
the timer queue, including those made by the caller or by
other processes.
$CREPRC Creates a subprocess or detached process on behalf of the
calling process.
$DCLEXH Declares an exit handling routine that receives control
when an image exits.
$DELPRC Allows a process to delete itself or another process.
$EXIT Initiates image rundown when the current image in a
process completes execution.
$FORCEX Causes an Exit ($EXIT) service call to be issued on behalf
of a specified process.
$HIBER Allows a process to make itself inactive but to remain
known to the system so that it can be interrupted; for
example, to receive ASTs.
$PROCESS_SCAN Creates and initializes a process context that is used by
$GETJPI to scan processes on the local system or across
the nodes in a VMScluster system.
$RESCHED Requests reschedule of a process.
$RESUME Causes a process previously suspended by the Suspend
Process ($SUSPND) service to resume execution or cancels
the effect of a subsequent suspend request.
$SCHDWK Schedules the awakening (restarting) of a process that has
placed itself in a state of hibernation with the Hibernate
($HIBER) service.
(continued on next page)
1011