rusage_incr Kernel Service

Purpose

Increments a field of the rusage structure.

Syntax

#include <sys/encap.h>

void rusage_incr ( field,  amount)
int field;
int amount;

Parameters

Item Description
field Specifies the field to increment. It must have one of the following values:
RUSAGE_INBLOCK
Denotes the ru_inblock field. This field specifies the number of times the file system performed input.
RUSAGE_OUTBLOCK
Denotes the ru_outblock field. This field specifies the number of times the file system performed output.
RUSAGE_MSGRCV
Denotes the ru_msgrcv field. This field specifies the number of IPC messages received.
RUSAGE_MSGSENT
Denotes the ru_msgsnd field. This field specifies the number of IPC messages sent.
amount Specifies the amount to increment to the field.

Description

The rusage_incr kernel service increments the field specified by the field parameter of the calling process' rusage structure by the amount amount.

Execution Environment

The rusage_incr kernel service can be called from the process environment only.

Return Values

The rusage_incr kernel service has no return values.