MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / addr_to_page

Function addr_to_page

components/mm/mm_page.c:405–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405static inline rt_page_t addr_to_page(rt_page_t pg_start, void *addr)
406{
407 addr = (char *)addr + PV_OFFSET;
408 return &pg_start[((rt_ubase_t)addr >> ARCH_PAGE_SHIFT)];
409}
410
411#define CEIL(val, align) (((rt_size_t)(val) + (align)-1) & ~((align)-1))
412

Callers 6

rt_page_addr2pageFunction · 0.85
_install_pageFunction · 0.85
rt_page_initFunction · 0.85
_get_mpr_ready_n_installFunction · 0.85
nor_cache_writeFunction · 0.85
nor_cache_readFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected