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

Function cbmem_drv_init

util/cbmem/cbmem_drv.c:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36bool cbmem_drv_init(enum cbmem_drv_backend_type backend, bool writeable)
37{
38 if (backend != CBMEM_DRV_BACKEND_ANY)
39 return init_specific_backend(backend, writeable);
40
41 /* First try SYSFS backend as it's more secure. */
42 if (!init_specific_backend(CBMEM_DRV_BACKEND_SYSFS, writeable))
43 return init_specific_backend(CBMEM_DRV_BACKEND_DEVMEM, writeable);
44
45 return true;
46}
47
48void cbmem_drv_terminate(void)
49{

Callers 1

mainFunction · 0.85

Calls 1

init_specific_backendFunction · 0.85

Tested by

no test coverage detected