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

Function alloc_buffer

util/cbfstool/ifwitool.c:368–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366} ifwi_image;
367
368static void alloc_buffer(struct buffer *b, size_t s, const char *n)
369{
370 if (buffer_create(b, s, n) == 0)
371 return;
372
373 ERROR("Buffer allocation failure for %s (size = %zx).\n", n, s);
374 exit(-1);
375}
376
377/*
378 * Read header/entry members in little-endian format.

Callers 9

read_subpart_bufFunction · 0.85
alloc_bpdt_bufferFunction · 0.85
parse_subpart_dirFunction · 0.85
__bpdt_resetFunction · 0.85
pad_bufferFunction · 0.85
ifwi_writeFunction · 0.85
create_subpartFunction · 0.85
ibbp_dir_addFunction · 0.85
ifwi_dir_replaceFunction · 0.85

Calls 2

buffer_createFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected