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

Function _cbfs_load

src/include/cbfs.h:282–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282static inline size_t _cbfs_load(const char *name, void *buf, size_t size, bool force_ro,
283 enum cbfs_type *type)
284{
285 struct _cbfs_default_allocator_arg arg = { .buf = buf, .buf_size = size };
286 if (_cbfs_alloc(name, _cbfs_default_allocator, &arg, &size, force_ro, type))
287 return size;
288 else
289 return 0;
290}
291
292static inline size_t cbfs_load(const char *name, void *buf, size_t size)
293{

Callers 2

cbfs_type_loadFunction · 0.70
cbfs_ro_type_loadFunction · 0.70

Calls 1

_cbfs_allocFunction · 0.50

Tested by

no test coverage detected