Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/vm_object.h
Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Lines | #define VM_OBJECT_WOWNED(object) \ | ||||
rw_wowned(&(object)->lock) | rw_wowned(&(object)->lock) | ||||
#define VM_OBJECT_WUNLOCK(object) \ | #define VM_OBJECT_WUNLOCK(object) \ | ||||
rw_wunlock(&(object)->lock) | rw_wunlock(&(object)->lock) | ||||
#define VM_OBJECT_DROP(object) \ | #define VM_OBJECT_DROP(object) \ | ||||
lock_class_rw.lc_unlock(&(object)->lock.lock_object) | lock_class_rw.lc_unlock(&(object)->lock.lock_object) | ||||
#define VM_OBJECT_PICKUP(object, state) \ | #define VM_OBJECT_PICKUP(object, state) \ | ||||
lock_class_rw.lc_lock(&(object)->lock.lock_object, (state)) | lock_class_rw.lc_lock(&(object)->lock.lock_object, (state)) | ||||
#define VM_OBJECT_ASSERT_PAGING(object) \ | |||||
KASSERT((object)->paging_in_progress != 0, \ | |||||
("vm_object %p is not paging", object)) | |||||
#define VM_OBJECT_ASSERT_REFERENCE(object) \ | |||||
KASSERT((object)->reference_count != 0, \ | |||||
("vm_object %p is not referenced", object)) | |||||
struct vnode; | struct vnode; | ||||
/* | /* | ||||
* The object must be locked or thread private. | * The object must be locked or thread private. | ||||
*/ | */ | ||||
static __inline void | static __inline void | ||||
vm_object_set_flag(vm_object_t object, u_short bits) | vm_object_set_flag(vm_object_t object, u_short bits) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |