MCPcopy Create free account
hub / github.com/coreboot/coreboot / xzalloc_work

Function xzalloc_work

src/commonlib/bsd/include/commonlib/bsd/stdlib.h:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#define xmalloc(size) xmalloc_work((size), __FILE__, __func__, __LINE__)
34
35static inline void *xzalloc_work(size_t size, const char *file, const char *func, int line)
36{
37 void *ret = xmalloc_work(size, file, func, line);
38 memset(ret, 0, size);
39 return ret;
40}
41#define xzalloc(size) xzalloc_work((size), __FILE__, __func__, __LINE__)
42
43static inline void *xmemalign_work(size_t align, size_t size, const char *file,

Callers

nothing calls this directly

Calls 2

xmalloc_workFunction · 0.85
memsetFunction · 0.50

Tested by

no test coverage detected