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

Function map_memory

util/cbmem/devmem_drv.c:112–115  ·  view source on GitHub ↗

Convenience helper for the common case of read-only mappings. */

Source from the content-addressed store, hash-verified

110
111/* Convenience helper for the common case of read-only mappings. */
112static const void *map_memory(struct mapping *mapping, unsigned long long phys, size_t sz)
113{
114 return map_memory_with_prot(mapping, phys, sz, PROT_READ);
115}
116
117/* Returns 0 on success, < 0 on error. mapping is cleared if successful. */
118static int unmap_memory(struct mapping *mapping)

Callers 3

parse_cbtableFunction · 0.85
fetch_cbmem_entryFunction · 0.85

Calls 1

map_memory_with_protFunction · 0.85

Tested by

no test coverage detected