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

Function commit_data

src/lib/region_file.c:367–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367static int commit_data(const struct region_file *f,
368 const struct update_region_file_entry *entries,
369 size_t num_entries)
370{
371 size_t offset = block_to_bytes(region_file_data_begin(f));
372 for (int i = 0; i < num_entries; i++) {
373 if (rdev_writeat(&f->rdev, entries[i].data, offset, entries[i].size) < 0)
374 return -1;
375 offset += entries[i].size;
376 }
377 return 0;
378}
379
380static int handle_empty(struct region_file *f, size_t data_blks)
381{

Callers 1

handle_updateFunction · 0.85

Calls 3

block_to_bytesFunction · 0.85
region_file_data_beginFunction · 0.85
rdev_writeatFunction · 0.85

Tested by

no test coverage detected