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

Function pmap_alloc_direct_page

freebsd/mips/mips/pmap.c:1109–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1107}
1108
1109static vm_page_t
1110pmap_alloc_direct_page(unsigned int index, int req)
1111{
1112 vm_page_t m;
1113
1114 m = vm_page_alloc_freelist(VM_FREELIST_DIRECT, req | VM_ALLOC_WIRED |
1115 VM_ALLOC_ZERO);
1116 if (m == NULL)
1117 return (NULL);
1118
1119 if ((m->flags & PG_ZERO) == 0)
1120 pmap_zero_page(m);
1121
1122 m->pindex = index;
1123 return (m);
1124}
1125
1126/*
1127 * Initialize a preallocated and zeroed pmap structure,

Callers 3

pmap_pinitFunction · 0.85
_pmap_allocpteFunction · 0.85
pmap_growkernelFunction · 0.85

Calls 2

vm_page_alloc_freelistFunction · 0.85
pmap_zero_pageFunction · 0.70

Tested by

no test coverage detected