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

Function fault_page_free

freebsd/vm/vm_fault.c:189–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189static inline void
190fault_page_free(vm_page_t *mp)
191{
192 vm_page_t m;
193
194 m = *mp;
195 if (m != NULL) {
196 VM_OBJECT_ASSERT_WLOCKED(m->object);
197 if (!vm_page_wired(m))
198 vm_page_free(m);
199 else
200 vm_page_xunbusy(m);
201 *mp = NULL;
202 }
203}
204
205static inline void
206unlock_map(struct faultstate *fs)

Callers 3

fault_deallocateFunction · 0.85
vm_fault_nextFunction · 0.85
vm_faultFunction · 0.85

Calls 2

vm_page_wiredFunction · 0.85
vm_page_freeFunction · 0.85

Tested by

no test coverage detected