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

Function alloc_cbfs_preload_context

src/lib/cbfs.c:319–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317static struct list_node cbfs_preload_context_list;
318
319static struct cbfs_preload_context *alloc_cbfs_preload_context(size_t additional)
320{
321 struct cbfs_preload_context *context;
322 size_t size = sizeof(*context) + additional;
323
324 context = mem_pool_alloc(&cbfs_cache, size);
325
326 if (!context)
327 return NULL;
328
329 memset(context, 0, size);
330
331 return context;
332}
333
334static void append_cbfs_preload_context(struct cbfs_preload_context *context)
335{

Callers 1

cbfs_preloadFunction · 0.85

Calls 2

memsetFunction · 0.70
mem_pool_allocFunction · 0.50

Tested by

no test coverage detected