[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

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

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.

Implementation Specifics

The rusage_incr kernel service is part of the Base Operating System (BOS) Runtime.

Related Information

The getrusage subroutine.

Process and Exception Management Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]