From a300d400e95ae536e411be55d358e7ab886c2edf Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 10 Sep 1997 20:11:02 +0000 Subject: 3 lines of code and updates to a number of comments. Reviewed by: phk Submitted by: Terry Lambert --- sys/kern/vnode_if.pl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sys/kern/vnode_if.pl') 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 -- cgit v1.1