getStatistics
Declaration
virtual UInt32 getStatistics(
UInt64 *statistics,
UInt32statisticsMaxCount) const;Parameters
- statistics:
Buffer that will receive the UInt64 statistic values.
- statisticsMaxCount:
Maximum number of statistic values that can be held in the buffer.
Return Value
Actual number of statistic values copied to the buffer, or if no buffer is given, the total number of statistic values available.
Overview
Ask the driver to report its operating statistics.
The statistics are each indexed by IOBlockStorageDriver::Statistics indices. This routine fills the caller's buffer, up to the maximum count specified if the real number of statistics would overflow the buffer. The return value indicates the actual number of statistics copied to the buffer.
If the statistics buffer is not supplied or if the maximum count is zero, the routine returns the proposed count of statistics instead.
See Also
Miscellaneous
acceptNewMediaaddToBytesTransferredallocateContextbreakUpRequestcheckForMediaconstrainByteCountcopyPhysicalExtentdeblockRequestdecommissionMediadeleteContextejectMediaexecuteRequestformatMediagetDeviceTypeNamegetFormatCapacitiesgetMediaBlockSizegetMediaStategetStatistichandleClosehandleIsOpenhandleOpenhandleStartincrementErrorsincrementRetriesinitMediaStateinstantiateDesiredMediaObjectinstantiateMediaObjectisMediaEjectableisMediaRemovableisMediaWritablelockPhysicalExtentsmediaStateHasChangedprepareRequestreadrecordMediaParametersrejectMediarequestIdlesynchronizeCacheunlockPhysicalExtentsunmapvalidateNewMediawrite