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

Function findfile

payloads/coreinfo/cbfs_module.c:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static struct cbfile *findfile(const char *filename)
77{
78 struct cbfile *f;
79 for (f = firstfile(); f; f = nextfile(f)) {
80 if (strcmp(filename, f->filename) == 0)
81 return f;
82 }
83 return NULL;
84}
85
86static int cbfs_module_init(void)
87{

Callers 1

cbfs_module_redrawFunction · 0.85

Calls 3

firstfileFunction · 0.85
nextfileFunction · 0.85
strcmpFunction · 0.50

Tested by

no test coverage detected