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

Function run_flashrom

util/cbfstool/flashrom.c:63–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static int run_flashrom(const char *const argv[])
64{
65 int status = subprocess_run(argv, &subprocess_null, &subprocess_null,
66 &subprocess_null);
67 if (status) {
68 fprintf(stderr, "Flashrom invocation failed (exit status %d):",
69 status);
70 for (const char *const *argp = argv; *argp; argp++)
71 fprintf(stderr, " %s", *argp);
72 fprintf(stderr, "\n");
73 return -1;
74 }
75
76 return 0;
77}
78
79int flashrom_host_read(struct buffer *buffer, const char *region)
80{

Callers 2

flashrom_host_readFunction · 0.85
flashrom_host_writeFunction · 0.85

Calls 1

fprintfFunction · 0.85

Tested by

no test coverage detected