summaryrefslogtreecommitdiffstats
path: root/sys/kern/vnode_if.pl
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vnode_if.pl')
-rw-r--r--sys/kern/vnode_if.pl12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/kern/vnode_if.pl b/sys/kern/vnode_if.pl
index 75f49a7..d351d8e 100644
--- a/sys/kern/vnode_if.pl
+++ b/sys/kern/vnode_if.pl
@@ -32,7 +32,7 @@
# SUCH DAMAGE.
#
# @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93
-# $Id$
+# $Id: vnode_if.sh,v 1.11 1997/02/22 09:39:36 peter Exp $
#
# Script to produce VFS front-end sugar.
@@ -397,6 +397,8 @@ static inline int VOP_BWRITE(bp)
a.a_bp = bp;
return (VCALL((bp)->b_vp, VOFFSET(vop_bwrite), &a));
}
+
+extern int vfs_opv_numops;
END_OF_SPECIAL_CASES
cat << END_OF_SPECIAL_CASES >> $CFILE
@@ -457,3 +459,11 @@ $AWK '
}
}' < $SRC >> $CFILE
+cat << END_OF_NUMOPS_CODE >> $CFILE
+
+/*
+ * the -1 is to account for the NULL
+ * XXX is the NULL still necessary? I don't think so...
+ */
+int vfs_opv_numops = (sizeof(vfs_op_descs)/sizeof(struct vnodeop_desc *)) - 1;
+END_OF_NUMOPS_CODE
OpenPOWER on IntegriCloud