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

Function dump_cbmem_raw

util/cbmem/cbmem.c:888–899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888static void dump_cbmem_raw(unsigned int id)
889{
890 uint8_t *buf;
891 size_t size;
892
893 if (!cbmem_drv_get_cbmem_entry(id, &buf, &size, NULL))
894 die("cbmem entry id: %#x not found.\n", id);
895
896 fwrite(buf, 1, size, stdout);
897
898 free(buf);
899}
900
901struct cbmem_id_to_name {
902 uint32_t id;

Callers 1

mainFunction · 0.85

Calls 4

fwriteFunction · 0.85
dieFunction · 0.50
freeFunction · 0.50

Tested by

no test coverage detected