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

Function lb_new_record

src/lib/coreboot_table.c:72–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72struct lb_record *lb_new_record(struct lb_header *header)
73{
74 struct lb_record *rec;
75 rec = lb_last_record(header);
76 if (header->table_entries) {
77 assert(IS_ALIGNED(rec->size, LB_ENTRY_ALIGN));
78 header->table_bytes += rec->size;
79 rec = lb_last_record(header);
80 }
81 header->table_entries++;
82 rec->tag = LB_TAG_UNUSED;
83 rec->size = sizeof(*rec);
84 return rec;
85}
86
87static struct lb_memory *lb_memory(struct lb_header *header)
88{

Callers 15

lb_arch_add_recordsFunction · 0.85
lb_boardFunction · 0.85
lb_boardFunction · 0.85
lb_boardFunction · 0.85
lb_boardFunction · 0.85
lb_boardFunction · 0.85
lb_boardFunction · 0.85
lb_boardFunction · 0.85
lb_boardFunction · 0.85
lb_add_boot_modeFunction · 0.85
lb_boardFunction · 0.85
lb_boardFunction · 0.85

Calls 1

lb_last_recordFunction · 0.85

Tested by 3

test_lb_new_recordFunction · 0.68
lb_arch_add_recordsFunction · 0.68