diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-12 01:26:11 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-12 01:26:11 +0000 |
commit | 6f622671e86434b2fa80299a0e9545fb83b45ca7 (patch) | |
tree | e7659c198c13ca9b253eef13911915a894742434 /sys/uvm/uvm_object.h | |
parent | 1cf132e0e8e9b2b0914a758674d9861559da7781 (diff) |
Bring in more changes from NetBSD. Mostly pagedaemon improvements.
Diffstat (limited to 'sys/uvm/uvm_object.h')
-rw-r--r-- | sys/uvm/uvm_object.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sys/uvm/uvm_object.h b/sys/uvm/uvm_object.h index 15a1e49d455..ac55e44d7be 100644 --- a/sys/uvm/uvm_object.h +++ b/sys/uvm/uvm_object.h @@ -1,5 +1,5 @@ -/* $OpenBSD: uvm_object.h,v 1.5 2001/01/29 02:07:47 niklas Exp $ */ -/* $NetBSD: uvm_object.h,v 1.8 1999/05/25 20:30:09 thorpej Exp $ */ +/* $OpenBSD: uvm_object.h,v 1.6 2001/11/12 01:26:09 art Exp $ */ +/* $NetBSD: uvm_object.h,v 1.11 2001/03/09 01:02:12 chs Exp $ */ /* * @@ -83,4 +83,18 @@ struct uvm_object { #define UVM_OBJ_IS_INTRSAFE_OBJECT(uobj) \ ((uobj)->uo_refs == UVM_OBJ_KERN_INTRSAFE) +#ifdef _KERNEL + +extern struct uvm_pagerops uvm_vnodeops; + +#define UVM_OBJ_IS_VNODE(uobj) \ + ((uobj)->pgops == &uvm_vnodeops) + +#define UVM_OBJ_IS_VTEXT(uobj) \ + ((uobj)->pgops == &uvm_vnodeops && \ + ((struct vnode *)uobj)->v_flag & VTEXT) + + +#endif /* _KERNEL */ + #endif /* _UVM_UVM_OBJECT_H_ */ |