Reuse devinfo struct
The devstat API expects us to reuse one devinfo for many invocations of devstat_getstats. In particular, it allocates and resizes memory referenced by devinfo.
This commit is contained in:
parent
ea55d0f5cb
commit
38c5890428
3 changed files with 12 additions and 5 deletions
|
|
@ -38,4 +38,4 @@ typedef struct {
|
|||
|
||||
|
||||
int _get_ndevs();
|
||||
int _get_stats(Stats **stats);
|
||||
int _get_stats(struct devinfo *info, Stats **stats);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue