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

Function parse_devicetree

util/sconfig/main.c:1469–1485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1467}
1468
1469static void parse_devicetree(const char *file, struct bus *parent)
1470{
1471 FILE *filec = fopen(file, "r");
1472 if (!filec) {
1473 perror(NULL);
1474 exit(1);
1475 }
1476
1477 yyrestart(filec);
1478
1479 root_parent = parent;
1480 linenum = 0;
1481
1482 yyparse();
1483
1484 fclose(filec);
1485}
1486
1487static int device_probe_count(struct fw_config_probe *probe)
1488{

Callers 2

mainFunction · 0.70

Calls 4

fopenFunction · 0.85
perrorFunction · 0.85
exitFunction · 0.85
fcloseFunction · 0.85

Tested by

no test coverage detected