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

Function calloc

payloads/libpayload/libc/malloc.c:299–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void *calloc(size_t nmemb, size_t size)
300{
301 size_t total = nmemb * size;
302 void *ptr = alloc(total, heap);
303
304 if (ptr)
305 memset(ptr, 0, total);
306
307 return ptr;
308}
309
310void *realloc(void *ptr, size_t size)
311{

Callers 13

dwc2_udc_initFunction · 0.50
chipidea_initFunction · 0.50
ahci_dev_initFunction · 0.50
init_device_entryFunction · 0.50
setup_cbfs_testFunction · 0.50
PDC_scr_openFunction · 0.50
PDC_scr_openFunction · 0.50
PDC_scr_openFunction · 0.50
PDC_scr_openFunction · 0.50
addressFunction · 0.50
slk_initFunction · 0.50
PDC_makenewFunction · 0.50

Calls 2

allocFunction · 0.85
memsetFunction · 0.50

Tested by 1

setup_cbfs_testFunction · 0.40