Specifications

Operating System Routines
EXE$DEBIT_BYTCNT(_NW), EXE$DEBIT_BYTCNT_BYTLM(_NW)
Description
EXE$DEBIT_BYTCNT and EXE$DEBIT_BYTCNT_NW check whether a process
has sufficient quota for a buffer of the specified size and, if so, deduct the
corresponding number of bytes from the job’s byte count quota. EXE$DEBIT_
BYTCNT_BYTLM and EXE$DEBIT_BYTCNT_BYTLM_NW also adjust the job’s
byte limit. All routines round the value specified in R1 up to the nearest 16-byte
boundary before applying it to the JIB.
If the process’s quota usage is too large, EXE$DEBIT_BYTCNT and
EXE$DEBIT_BYTCNT_BYTLM place the process into a resource wait state,
based on the setting of PCB$V_SSRWAIT, until sufficient quota is returned to
the job. EXE$DEBIT_BYTCNT_NW and EXE$DEBIT_BYTCNT_BYTLM_NW do
not refer to PCB$V_SSRWAIT and return an error if the process has exceeded its
job’s quota. These latter routines never wait for sufficient quota.
If bit 31 in R1 is clear, all routines compare the byte count in R1 against
IOC$GW_MAXBUF, returning an error if the system’s maximum buffer allotment
to a process is exceeded.
3–25