MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vm_page_next

Function vm_page_next

freebsd/vm/vm_page.c:1791–1803  ·  view source on GitHub ↗

* Returns the given page's successor (by pindex) within the object if it is * resident; if none is found, NULL is returned. * * The object must be locked. */

Source from the content-addressed store, hash-verified

1789 * The object must be locked.
1790 */
1791vm_page_t
1792vm_page_next(vm_page_t m)
1793{
1794 vm_page_t next;
1795
1796 VM_OBJECT_ASSERT_LOCKED(m->object);
1797 if ((next = TAILQ_NEXT(m, listq)) != NULL) {
1798 MPASS(next->object == m->object);
1799 if (next->pindex != m->pindex + 1)
1800 next = NULL;
1801 }
1802 return (next);
1803}
1804
1805/*
1806 * Returns the given page's predecessor (by pindex) within the object if it is

Callers 11

kcov_freeFunction · 0.85
domain_get_idmap_pgtblFunction · 0.85
domain_free_pgtblFunction · 0.85
vm_page_grab_validFunction · 0.85
vm_page_grab_pagesFunction · 0.85
vm_fault_populateFunction · 0.85
_kmem_unbackFunction · 0.85
vm_pageout_clusterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected