The extended accounting API contains functions that perform the following:
exacct system calls
Operations on the exacct file
Operations on exacct objects
Miscellaneous Operations
The following table lists the system calls that interact with the extended accounting subsystem.
Table 3–1 Extended Accounting System Calls
Function |
Description |
---|---|
Provides privileged processes with the ability to tag accounting records with additional data that is specific to the process |
|
Enables privileged processes to request extended accounting buffers from the kernel for currently executing tasks and processes |
|
Requests the kernel to write resource usage data for a specified task or process |
These functions provide access to the exacct files:
Table 3–2 exacct File Functions
Function |
Description |
---|---|
Opens an exacct file. |
|
Closes an exacct file. |
|
First time use on a group of objects reads data into an ea_object_t structure. Subsequent use on the group cycles through the objects in the group. |
|
Appends the specified object to the open exacct file. |
|
Reads the basic fields (eo_catalog and eo_type) into an ea_object_t structure and rewinds to the head of the record. |
|
Skips back one object in the exacct file and reads the basic fields (eo_catalog and eo_type) into an ea_object_t. |
|
Gets the name of the host on which the exacct file was created. |
|
Determines the creator of the exacct file. |
These functions are used to access exacct objects:
Table 3–3 exacct Object Functions
Function |
Description |
---|---|
Assigns an exacct object and sets the value(s). |
|
Sets the values of a group of exacct objects. |
|
Checks an exacct object's mask to see if that object has a specific catalog tag. |
|
Attaches an exacct object to a specified exacct object. |
|
Attaches a chain of exacct objects as member items of a specified group. |
|
Frees the value fields in the specified exacct object. |
|
Frees the specified exacct object and any attached hierarchies of objects. |
These functions are associated with miscellaneous operations: