summaryrefslogtreecommitdiffstats
path: root/sys/tools/vnode_if.awk
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-02-28 11:30:00 +0000
committerbde <bde@FreeBSD.org>1999-02-28 11:30:00 +0000
commit24ba3bedb135b53bd66e125fa2e7125c3f3bed1a (patch)
tree949c581059213defe8a0c8ea9ec5c0606c7c0c42 /sys/tools/vnode_if.awk
parent6d8d63664b85d83414c7e28ee8e59af676bfa952 (diff)
downloadFreeBSD-src-24ba3bedb135b53bd66e125fa2e7125c3f3bed1a.zip
FreeBSD-src-24ba3bedb135b53bd66e125fa2e7125c3f3bed1a.tar.gz
Declare static __inline functions as __inline in their forward
declaration. Fixed some comments. Fixed a staticization botch.
Diffstat (limited to 'sys/tools/vnode_if.awk')
-rw-r--r--sys/tools/vnode_if.awk21
1 files changed, 8 insertions, 13 deletions
diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk
index 8193edb..87517e6 100644
--- a/sys/tools/vnode_if.awk
+++ b/sys/tools/vnode_if.awk
@@ -32,7 +32,7 @@
# SUCH DAMAGE.
#
# @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93
-# $Id: vnode_if.sh,v 1.15 1998/07/04 20:45:32 julian Exp $
+# $Id: vnode_if.sh,v 1.16 1998/11/10 09:04:09 peter Exp $
#
# Script to produce VFS front-end sugar.
@@ -114,7 +114,7 @@ $AWK '
printf("extern struct vnodeop_desc %s_desc;\n", name);
# Print out prototype.
- printf("static int %s __P((\n", uname);
+ printf("static __inline int %s __P((\n", uname);
sep = ",\n";
for (c2 = 0; c2 < c1; ++c2) {
if (c2 == c1 - 1)
@@ -134,7 +134,7 @@ $AWK '
substr(t[c4], beg, end - beg), sep);
}
- # Print out inline struct.
+ # Print out function.
printf("static __inline int %s(", uname);
sep = ", ";
for (c2 = 0; c2 < c1; ++c2) {
@@ -350,16 +350,13 @@ $AWK 'function kill_surrounding_ws (s) {
printf "\n";
}' < $SRC >> $CFILE
+
# THINGS THAT DON'T WORK RIGHT YET.
#
-# Two existing BSD vnodeops (bwrite and strategy) don't take any vnodes as
-# arguments. This means that these operations can't function successfully
-# through a bypass routine.
-#
-# Bwrite and strategy will be replaced when the VM page/buffer cache
-# integration happens.
+# vop_bwrite doesn't take any vnodes as arguments. This means that it
+# can't function successfully through a bypass routine.
#
-# To get around this problem for now we handle these ops as special cases.
+# To get around this problem for now we handle it as a special case.
cat << END_OF_SPECIAL_CASES >> $HEADER
#include <sys/buf.h>
@@ -369,7 +366,7 @@ struct vop_bwrite_args {
struct buf *a_bp;
};
extern struct vnodeop_desc vop_bwrite_desc;
-static int VOP_BWRITE __P((
+static __inline int VOP_BWRITE __P((
struct buf *bp));
static __inline int VOP_BWRITE(bp)
struct buf *bp;
@@ -380,8 +377,6 @@ 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
OpenPOWER on IntegriCloud