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

Function cbmem_add

src/lib/imd_cbmem.c:143–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void *cbmem_add(u32 id, u64 size)
144{
145 const struct imd_entry *e;
146
147 e = imd_entry_find_or_add(&imd, id, size);
148
149 if (e == NULL)
150 return NULL;
151
152 return imd_entry_at(&imd, e);
153}
154
155/* Retrieve a region provided a given id. */
156const struct cbmem_entry *cbmem_entry_find(u32 id)

Callers 15

rmodule_cbfs_allocatorFunction · 0.70
_cbfs_cbmem_allocatorFunction · 0.70
mcache_to_cbmemFunction · 0.70
cbmem_initialize_id_sizeFunction · 0.70
write_tablesFunction · 0.70
stage_cache_addFunction · 0.70
stage_cache_add_rawFunction · 0.70
fmap_add_cbmem_cacheFunction · 0.70
cbmemc_reinitFunction · 0.70
fopenFunction · 0.70

Calls 2

imd_entry_find_or_addFunction · 0.85
imd_entry_atFunction · 0.85

Tested by

no test coverage detected