Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/netmap/netmap_freebsd.c
Show First 20 Lines • Show All 1,046 Lines • ▼ Show 20 Lines | |||||
#ifndef VM_OBJECT_WUNLOCK /* FreeBSD < 10.x */ | #ifndef VM_OBJECT_WUNLOCK /* FreeBSD < 10.x */ | ||||
#define VM_OBJECT_WUNLOCK VM_OBJECT_UNLOCK | #define VM_OBJECT_WUNLOCK VM_OBJECT_UNLOCK | ||||
#define VM_OBJECT_WLOCK VM_OBJECT_LOCK | #define VM_OBJECT_WLOCK VM_OBJECT_LOCK | ||||
#endif /* VM_OBJECT_WUNLOCK */ | #endif /* VM_OBJECT_WUNLOCK */ | ||||
VM_OBJECT_WUNLOCK(object); | VM_OBJECT_WUNLOCK(object); | ||||
page = vm_page_getfake(paddr, memattr); | page = vm_page_getfake(paddr, memattr); | ||||
VM_OBJECT_WLOCK(object); | VM_OBJECT_WLOCK(object); | ||||
vm_page_lock(*mres); | |||||
vm_page_free(*mres); | vm_page_free(*mres); | ||||
vm_page_unlock(*mres); | |||||
*mres = page; | *mres = page; | ||||
vm_page_insert(page, object, pidx); | vm_page_insert(page, object, pidx); | ||||
} | } | ||||
page->valid = VM_PAGE_BITS_ALL; | page->valid = VM_PAGE_BITS_ALL; | ||||
return (VM_PAGER_OK); | return (VM_PAGER_OK); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 557 Lines • Show Last 20 Lines |