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

Function alloc_prop

src/commonlib/device_tree.c:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49static struct device_tree_property *alloc_prop(void)
50{
51#ifndef __COREBOOT__
52 static struct device_tree_property scratch[LP_ALLOC_PROP_SCRATCH_COUNT];
53 static int counter = 0;
54
55 if (counter < ARRAY_SIZE(scratch))
56 return &scratch[counter++];
57#endif
58 return xzalloc(sizeof(struct device_tree_property));
59}
60
61
62/*

Callers 3

fdt_unflatten_nodeFunction · 0.85
dt_add_bin_propFunction · 0.85
dt_copy_subtreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected