MCPcopy Create free account
hub / github.com/F-Stack/f-stack / _memstat_mtl_empty

Function _memstat_mtl_empty

tools/libmemstat/memstat.c:101–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void
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
114void
115memstat_mtl_free(struct memory_type_list *list)

Callers 5

memstat_sysctl_umaFunction · 0.85
memstat_kvm_umaFunction · 0.85
memstat_sysctl_mallocFunction · 0.85
memstat_kvm_mallocFunction · 0.85
memstat_mtl_freeFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by

no test coverage detected