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

Function _find_page_region

components/mm/mm_page.c:275–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275static struct installed_page_reg *_find_page_region(rt_ubase_t page_va)
276{
277 struct installed_page_reg *iter;
278 struct installed_page_reg *rc = RT_NULL;
279 rt_bool_t found = RT_FALSE;
280
281 rt_spin_lock(&_inst_page_reg_lock);
282 for (iter = _inst_page_reg_head; iter; iter = iter->next)
283 {
284 if (page_va >= iter->region_area.start &&
285 page_va < iter->region_area.end)
286 {
287 found = RT_TRUE;
288 break;
289 }
290 }
291 rt_spin_unlock(&_inst_page_reg_lock);
292
293 if (found)
294 {
295 rc = iter;
296 }
297 return rc;
298}
299
300rt_bool_t rt_page_is_member(rt_base_t page_pa)
301{

Callers 5

rt_page_is_memberFunction · 0.85
_pages_are_memberFunction · 0.85
_unpoisoned_pagesFunction · 0.85
_poisoned_pagesFunction · 0.85

Calls 2

rt_spin_lockFunction · 0.50
rt_spin_unlockFunction · 0.50

Tested by

no test coverage detected