MCPcopy Create free account
hub / github.com/Singular/Singular / to_ptr

Method to_ptr

kernel/oswrapper/vspace.h:287–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 segments[seg] = mmap_segment(seg);
286 }
287 inline void *to_ptr(vaddr_t vaddr) {
288 if (vaddr == VADDR_NULL)
289 return NULL;
290 ensure_is_mapped(vaddr);
291 return segment(vaddr).ptr(segaddr(vaddr));
292 }
293 size_t filesize();
294 Status init(int fd);
295 Status init();

Callers 6

to_ptrMethod · 0.45
to_ptrMethod · 0.45
vnewFunction · 0.45
ZRefClass · 0.45
to_ptrMethod · 0.45
znewFunction · 0.45

Calls 1

ptrMethod · 0.80

Tested by

no test coverage detected