Changeset e28175d in mainline for uspace/lib/c/generic/stats.c
- Timestamp:
- 2020-03-15T10:44:02Z (6 years ago)
- Parents:
- b401b33 (diff), 44dde42 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- heiducteam <tristanided@…> (2020-03-15 10:44:02)
- git-committer:
- GitHub <noreply@…> (2020-03-15 10:44:02)
- File:
-
- 1 edited
-
uspace/lib/c/generic/stats.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/stats.c
rb401b33 re28175d 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 freed 192 * 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 186 212 /** Get exception statistics. 187 213 *
Note:
See TracChangeset
for help on using the changeset viewer.
