IMA_GetDeviceStatistics - Gets the statistics of the specified target or logical unit exposed to the operating system
cc [ flag... ] file... -lima [ library... ] #include <ima.h> IMA_STATUS IMA_GetDeviceStatistics( /* in */ IMA_OID oid, /* out */ IMA_DEVICE_STATISTICS *pStats );
The object ID of the target or logical unit (LU) whose statistics are retrieved.
A pointer to an IMA_DEVICE_STATISTICS data structure allocated by the caller. If successfully returned, this argument contains the statistics of the specified target or LU.
The IMA_GetDeviceStatistics() API gets the statistics of the specified target or LU exposed to the operating system.
Returned if the pStats argument is NULL, or specifies a memory area to which data cannot be written
Returned if the oid argument does not specify a valid object type
Returned if the oid argument does not specify an LU object
Returned if the oid argument does not specify an LU known to the system
Returned if the oid argument specifies a target that does not have any LUs exposed to the operating system
Returned if the oid argument specifies an LU not exposed to the operating system
Returned if statistics collection is not enabled for the oid argument
See attributes(7) for descriptions of the following attributes:
|
libima(3LIB), attributes(7), IMA_GetLuOidList(3IMA), IMA_SetStatisticsCollection(3IMA)