Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Define a UVM_OBJ_IS_VNODE() macro to test if an obje...



details:   https://anonhg.NetBSD.org/src/rev/7c16498598b4
branches:  trunk
changeset: 503013:7c16498598b4
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Jan 28 22:14:28 2001 +0000

description:
Define a UVM_OBJ_IS_VNODE() macro to test if an object is a vnode.

diffstat:

 sys/uvm/uvm_object.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 37fc479e4d83 -r 7c16498598b4 sys/uvm/uvm_object.h
--- a/sys/uvm/uvm_object.h      Sun Jan 28 21:43:38 2001 +0000
+++ b/sys/uvm/uvm_object.h      Sun Jan 28 22:14:28 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_object.h,v 1.8 1999/05/25 20:30:09 thorpej Exp $   */
+/*     $NetBSD: uvm_object.h,v 1.9 2001/01/28 22:14:28 thorpej Exp $   */
 
 /*
  *
@@ -82,4 +82,7 @@
 #define        UVM_OBJ_IS_INTRSAFE_OBJECT(uobj)                                \
        ((uobj)->uo_refs == UVM_OBJ_KERN_INTRSAFE)
 
+#define        UVM_OBJ_IS_VNODE(uobj)                                          \
+       ((uobj)->pgops == &uvm_vnodeops)
+
 #endif /* _UVM_UVM_OBJECT_H_ */



Home | Main Index | Thread Index | Old Index