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

Function getfile

payloads/coreinfo/cbfs_module.c:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48static struct cbheader *header = NULL;
49
50static struct cbfile *getfile(struct cbfile *f)
51{
52 while (1) {
53 if (f < (struct cbfile *)(0xffffffff - ntohl(header->romsize)))
54 return NULL;
55 if (f->magic == 0)
56 return NULL;
57 if (f->magic == LARCHIVE_MAGIC)
58 return f;
59 f = (struct cbfile *)((u8 *)f + ntohl(header->align));
60 }
61}
62
63static struct cbfile *firstfile(void)
64{

Callers 2

firstfileFunction · 0.85
nextfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected