Data Structures | |
| struct | sa_data_storage |
Functions | |
| SA_EXPORT int | sa_open_data_storage (void) |
| SA_EXPORT int | sa_close_data_storage (void) |
| SA_EXPORT int | sa_count_data_storages (uint16_t *number) |
| SA_EXPORT int | sa_get_data_storage (char *name, struct sa_data_storage *dst) |
| SA_EXPORT int | sa_get_data_storages (struct sa_data_storage *dst, uint16_t dst_size, uint16_t *written) |
| SA_EXPORT int sa_open_data_storage | ( | void | ) |
Prepares the resources needed for retrieving data storage statistics. This function exists (and is needed) only when SA_OPEN_DATA_STORAGE is defined.
| SA_EXPORT int sa_close_data_storage | ( | void | ) |
This function closes the resources used for retrieving data storage statistics. You should call it even when there was a previous error in another function of this API. This function exists (and is needed) only when SA_CLOSE_DATA_STORAGE is defined.
| SA_EXPORT int sa_count_data_storages | ( | uint16_t * | number | ) |
Gives the total number of data storage devices.
| number | The number will be stored here |
| SA_EXPORT int sa_get_data_storage | ( | char * | name, | |
| struct sa_data_storage * | dst | |||
| ) |
Retrieves statistics from a data storage device identified by its name.
| name | The name of the data storage device. | |
| dst | Where the statistics will be stored. |
| SA_EXPORT int sa_get_data_storages | ( | struct sa_data_storage * | dst, | |
| uint16_t | dst_size, | |||
| uint16_t * | written | |||
| ) |
Retrieves statistics about all the storage devices' activity.
| dst | A buffer where the statistics will be stored. | |
| dst_size | The number of devices that fits in the dst buffer. If it's not big enough dst will be filled but ENOMEM will be returned. | |
| written | The amount of device statistics written. |
1.7.1