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

Function relative_pointer

src/lib/imd.c:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12/* For more details on implementation and usage please see the imd.h header. */
13
14static void *relative_pointer(void *base, ssize_t offset)
15{
16 intptr_t b = (intptr_t)base;
17 b += offset;
18 return (void *)b;
19}
20
21static bool imd_root_pointer_valid(const struct imd_root_pointer *rp)
22{

Callers 6

imdr_get_root_pointerFunction · 0.85
imdr_create_emptyFunction · 0.85
imdr_recoverFunction · 0.85
imdr_entry_atFunction · 0.85
imd_region_usedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected