| 99 | } |
| 100 | |
| 101 | void |
| 102 | _memstat_mtl_empty(struct memory_type_list *list) |
| 103 | { |
| 104 | struct memory_type *mtp; |
| 105 | |
| 106 | while ((mtp = LIST_FIRST(&list->mtl_list))) { |
| 107 | free(mtp->mt_percpu_alloc); |
| 108 | free(mtp->mt_percpu_cache); |
| 109 | LIST_REMOVE(mtp, mt_list); |
| 110 | free(mtp); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | void |
| 115 | memstat_mtl_free(struct memory_type_list *list) |
no test coverage detected