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

Function memstat_mtl_alloc

tools/libmemstat/memstat.c:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73struct memory_type_list *
74memstat_mtl_alloc(void)
75{
76 struct memory_type_list *mtlp;
77
78 mtlp = malloc(sizeof(*mtlp));
79 if (mtlp == NULL)
80 return (NULL);
81
82 LIST_INIT(&mtlp->mtl_list);
83 mtlp->mtl_error = MEMSTAT_ERROR_UNDEFINED;
84 return (mtlp);
85}
86
87struct memory_type *
88memstat_mtl_first(struct memory_type_list *list)

Callers 1

mbprFunction · 0.85

Calls 1

mallocFunction · 0.85

Tested by

no test coverage detected