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

Function cbfs_get_entry

util/cbfstool/cbfs_image.c:826–838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824}
825
826struct cbfs_file *cbfs_get_entry(struct cbfs_image *image, const char *name)
827{
828 struct cbfs_file *entry;
829 for (entry = cbfs_find_first_entry(image);
830 entry && cbfs_is_valid_entry(image, entry);
831 entry = cbfs_find_next_entry(image, entry)) {
832 if (strcasecmp(entry->filename, name) == 0) {
833 DEBUG("%s: found %s\n", __func__, name);
834 return entry;
835 }
836 }
837 return NULL;
838}
839
840static int cbfs_payload_decompress(struct cbfs_payload_segment *segments,
841 struct buffer *buff, int num_seg)

Callers 10

parse_microcode_blobFunction · 0.85
get_mh_cacheFunction · 0.85
do_cbfs_locateFunction · 0.85
cbfs_add_master_headerFunction · 0.85
cbfs_add_componentFunction · 0.85
mainFunction · 0.85
cbfs_export_entryFunction · 0.85
cbfs_remove_entryFunction · 0.85

Calls 4

cbfs_find_first_entryFunction · 0.85
cbfs_is_valid_entryFunction · 0.85
cbfs_find_next_entryFunction · 0.85
strcasecmpFunction · 0.85

Tested by

no test coverage detected