Changes in uspace/lib/c/generic/stats.c [a6302ae:38d8849] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/stats.c
ra6302ae r38d8849 184 184 } 185 185 186 /** Get IPC connections statistics.187 *188 * @param count Number of records returned.189 *190 * @return Array of stats_ipcc_t structures.191 * If non-NULL then it should be eventually freed192 * by free().193 *194 */195 stats_ipcc_t *stats_get_ipccs(size_t *count)196 {197 size_t size = 0;198 stats_ipcc_t *stats_ipccs =199 (stats_ipcc_t *) sysinfo_get_data("system.ipccs", &size);200 201 if ((size % sizeof(stats_ipcc_t)) != 0) {202 if (stats_ipccs != NULL)203 free(stats_ipccs);204 *count = 0;205 return NULL;206 }207 208 *count = size / sizeof(stats_ipcc_t);209 return stats_ipccs;210 }211 212 186 /** Get exception statistics. 213 187 *
Note:
See TracChangeset
for help on using the changeset viewer.