Convenience helper for the common case of read-only mappings. */
| 110 | |
| 111 | /* Convenience helper for the common case of read-only mappings. */ |
| 112 | static 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. */ |
| 118 | static int unmap_memory(struct mapping *mapping) |
no test coverage detected