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

Function init_subpart_dir_header

util/cbfstool/ifwitool.c:1291–1302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1289}
1290
1291static void init_subpart_dir_header(struct subpart_dir_header *hdr,
1292 size_t count, const char *name)
1293{
1294 memset(hdr, 0, sizeof(*hdr));
1295
1296 hdr->marker = SUBPART_DIR_MARKER;
1297 hdr->num_entries = count;
1298 hdr->header_version = SUBPART_DIR_HEADER_VERSION_SUPPORTED;
1299 hdr->entry_version = SUBPART_DIR_ENTRY_VERSION_SUPPORTED;
1300 hdr->header_length = SUBPART_DIR_HEADER_SIZE;
1301 memcpy(hdr->name, name, sizeof(hdr->name));
1302}
1303
1304static size_t init_subpart_dir_entry(struct subpart_dir_entry *e,
1305 struct buffer *b, size_t offset)

Callers 1

create_subpartFunction · 0.85

Calls 2

memsetFunction · 0.50
memcpyFunction · 0.50

Tested by

no test coverage detected