Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coreboot/coreboot
/ calloc
Function
calloc
src/lib/malloc.c:63–70 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
61
}
62
63
void *calloc(size_t nitems, size_t size)
64
{
65
void *p = malloc(nitems * size);
66
if (p)
67
memset(p, 0, nitems * size);
68
69
return p;
70
}
71
72
void free(void *ptr)
73
{
Callers
15
bdk_nic_port_init
Function · 0.50
intel_acpi_gen_def_acpi_pirq
Function · 0.50
__alloc_bus
Function · 0.50
populate_pirq_data
Function · 0.50
pci_irq_to_fsp
Function · 0.50
pci_irq_to_fsp
Function · 0.50
acpigen_write_pci_prt
Function · 0.50
pci_irq_to_fsp
Function · 0.50
pci_irq_to_fsp
Function · 0.50
pci_irq_to_fsp
Function · 0.50
read_pmc_lpm_requirements
Function · 0.50
generate_pin_irq_map
Function · 0.50
Calls
2
malloc
Function · 0.70
memset
Function · 0.70
Tested by
2
fmap_flags_to_string_test
Function · 0.40
fmap_find_test
Function · 0.40