Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Update syntax to support WILLUNLOCK and WILLPUT syn...



details:   https://anonhg.NetBSD.org/src/rev/4571b6368ea0
branches:  trunk
changeset: 474472:4571b6368ea0
user:      wrstuden <wrstuden%NetBSD.org@localhost>
date:      Wed Jul 07 23:32:50 1999 +0000

description:
Update syntax to support WILLUNLOCK and WILLPUT syntax. Change calls which
really vput to indicate that rather than just WILLRELE.

diffstat:

 sys/kern/vnode_if.sh  |  19 ++++++++++++++++---
 sys/kern/vnode_if.src |  24 ++++++++++++------------
 2 files changed, 28 insertions(+), 15 deletions(-)

diffs (139 lines):

diff -r 6eab3e50cfca -r 4571b6368ea0 sys/kern/vnode_if.sh
--- a/sys/kern/vnode_if.sh      Wed Jul 07 23:30:03 1999 +0000
+++ b/sys/kern/vnode_if.sh      Wed Jul 07 23:32:50 1999 +0000
@@ -33,7 +33,7 @@
  * SUCH DAMAGE.
  */
 "
-SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.18 1998/09/13 14:44:34 christos Exp $'
+SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.19 1999/07/07 23:32:50 wrstuden Exp $'
 
 # Script to produce VFS front-end sugar.
 #
@@ -110,6 +110,12 @@
        if ($2 == "WILLRELE") {
                willrele[argc] = 1;
                i++;
+       } else if ($2 == "WILLUNLOCK") {
+               willrele[argc] = 2;
+               i++;
+       } else if ($2 == "WILLPUT") {
+               willrele[argc] = 3;
+               i++;
        } else
                willrele[argc] = 0;
        argtype[argc] = $i; i++;
@@ -293,10 +299,17 @@
        vpnum = 0;
        for (i=0; i<argc; i++) {
                if (willrele[i]) {
+                       if (willrele[i] == 2) {
+                               word = "UNLOCK";
+                       } else if (willrele[i] == 3) {
+                               word = "PUT";
+                       } else {
+                               word = "RELE";
+                       }
                        if (argdir[i] ~ /OUT/) {
-                               printf(" | VDESC_VPP_WILLRELE");
+                               printf(" | VDESC_VPP_WILL%s", word);
                        } else {
-                               printf(" | VDESC_VP%s_WILLRELE", vpnum);
+                               printf(" | VDESC_VP%s_WILL%s", vpnum, word);
                        };
                        vpnum++;
                }
diff -r 6eab3e50cfca -r 4571b6368ea0 sys/kern/vnode_if.src
--- a/sys/kern/vnode_if.src     Wed Jul 07 23:30:03 1999 +0000
+++ b/sys/kern/vnode_if.src     Wed Jul 07 23:32:50 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: vnode_if.src,v 1.17 1999/06/21 02:28:46 sommerfeld Exp $
+#      $NetBSD: vnode_if.src,v 1.18 1999/07/07 23:32:50 wrstuden Exp $
 #
 # Copyright (c) 1992, 1993
 #      The Regents of the University of California.  All rights reserved.
@@ -83,7 +83,7 @@
 #% create     vpp     - L -
 #
 vop_create {
-       IN WILLRELE struct vnode *dvp;
+       IN WILLPUT struct vnode *dvp;
        OUT struct vnode **vpp;
        IN struct componentname *cnp;
        IN struct vattr *vap;
@@ -94,7 +94,7 @@
 #% mknod      vpp     - X -
 #
 vop_mknod {
-       IN WILLRELE struct vnode *dvp;
+       IN WILLPUT struct vnode *dvp;
        OUT WILLRELE struct vnode **vpp;
        IN struct componentname *cnp;
        IN struct vattr *vap;
@@ -234,8 +234,8 @@
 #% remove     vp      L U U
 #
 vop_remove {
-       IN WILLRELE struct vnode *dvp;
-       IN WILLRELE struct vnode *vp;
+       IN WILLPUT struct vnode *dvp;
+       IN WILLPUT struct vnode *vp;
        IN struct componentname *cnp;
 };
 
@@ -244,7 +244,7 @@
 #% link               tdvp    L U U
 #
 vop_link {
-       IN WILLRELE struct vnode *dvp;
+       IN WILLPUT struct vnode *dvp;
        IN struct vnode *vp;
        IN struct componentname *cnp;
 };
@@ -259,7 +259,7 @@
        IN WILLRELE struct vnode *fdvp;
        IN WILLRELE struct vnode *fvp;
        IN struct componentname *fcnp;
-       IN WILLRELE struct vnode *tdvp;
+       IN WILLPUT struct vnode *tdvp;
        IN WILLRELE struct vnode *tvp;
        IN struct componentname *tcnp;
 };
@@ -269,7 +269,7 @@
 #% mkdir      vpp     - L - 
 #
 vop_mkdir {
-       IN WILLRELE struct vnode *dvp;
+       IN WILLPUT struct vnode *dvp;
        OUT struct vnode **vpp;
        IN struct componentname *cnp;
        IN struct vattr *vap;
@@ -280,8 +280,8 @@
 #% rmdir      vp      L U U
 #
 vop_rmdir {
-       IN WILLRELE struct vnode *dvp;
-       IN WILLRELE struct vnode *vp;
+       IN WILLPUT struct vnode *dvp;
+       IN WILLPUT struct vnode *vp;
        IN struct componentname *cnp;
 };
 
@@ -294,7 +294,7 @@
 #     possibly with a further namei.
 #
 vop_symlink {
-       IN WILLRELE struct vnode *dvp;
+       IN WILLPUT struct vnode *dvp;
        OUT WILLRELE struct vnode **vpp;
        IN struct componentname *cnp;
        IN struct vattr *vap;
@@ -334,7 +334,7 @@
 #% inactive   vp      L U U  
 #
 vop_inactive {
-       IN struct vnode *vp;
+       IN WILLUNLOCK struct vnode *vp;
        IN struct proc *p;
 };
 



Home | Main Index | Thread Index | Old Index