Source-Changes-HG archive

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

[src/chs-ubc2]: src/sys add VOP_BALLOC().



details:   https://anonhg.NetBSD.org/src/rev/c62614e974e1
branches:  chs-ubc2
changeset: 471362:c62614e974e1
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Jul 04 01:42:26 1999 +0000

description:
add VOP_BALLOC().

diffstat:

 sys/kern/vnode_if.c   |  19 ++++++++++++++++++-
 sys/kern/vnode_if.src |  14 +++++++++++++-
 sys/sys/vnode_if.h    |  33 ++++++++++++++++++++++++++++++++-
 3 files changed, 63 insertions(+), 3 deletions(-)

diffs (115 lines):

diff -r b4d63b9572f1 -r c62614e974e1 sys/kern/vnode_if.c
--- a/sys/kern/vnode_if.c       Sun Jul 04 01:41:46 1999 +0000
+++ b/sys/kern/vnode_if.c       Sun Jul 04 01:42:26 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnode_if.c,v 1.15.4.2 1999/07/01 23:43:23 thorpej Exp $        */
+/*     $NetBSD: vnode_if.c,v 1.15.4.3 1999/07/04 01:42:26 chs Exp $    */
 
 /*
  * Warning: This file is generated automatically.
@@ -642,6 +642,22 @@
        NULL,
 };
 
+int vop_balloc_vp_offsets[] = {
+       VOPARG_OFFSETOF(struct vop_balloc_args,a_vp),
+       VDESC_NO_OFFSET
+};
+struct vnodeop_desc vop_balloc_desc = {
+       0,
+       "vop_balloc",
+       0,
+       vop_balloc_vp_offsets,
+       VDESC_NO_OFFSET,
+       VOPARG_OFFSETOF(struct vop_balloc_args, a_cred),
+       VDESC_NO_OFFSET,
+       VDESC_NO_OFFSET,
+       NULL,
+};
+
 int vop_reallocblks_vp_offsets[] = {
        VOPARG_OFFSETOF(struct vop_reallocblks_args,a_vp),
        VDESC_NO_OFFSET
@@ -845,6 +861,7 @@
        &vop_advlock_desc,
        &vop_blkatoff_desc,
        &vop_valloc_desc,
+       &vop_balloc_desc,
        &vop_reallocblks_desc,
        &vop_vfree_desc,
        &vop_truncate_desc,
diff -r b4d63b9572f1 -r c62614e974e1 sys/kern/vnode_if.src
--- a/sys/kern/vnode_if.src     Sun Jul 04 01:41:46 1999 +0000
+++ b/sys/kern/vnode_if.src     Sun Jul 04 01:42:26 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: vnode_if.src,v 1.16.4.2 1999/07/01 23:43:23 thorpej Exp $
+#      $NetBSD: vnode_if.src,v 1.16.4.3 1999/07/04 01:42:26 chs Exp $
 #
 # Copyright (c) 1992, 1993
 #      The Regents of the University of California.  All rights reserved.
@@ -436,6 +436,18 @@
 };
 
 #
+#% balloc       vp      L L L
+#
+vop_balloc {
+       IN struct vnode *vp;
+       IN off_t offset;
+       IN int size;
+       IN struct ucred *cred;
+       IN int flags;
+       OUT struct buf **bpp;
+};
+
+#
 #% reallocblks        vp      L L L
 #
 vop_reallocblks {
diff -r b4d63b9572f1 -r c62614e974e1 sys/sys/vnode_if.h
--- a/sys/sys/vnode_if.h        Sun Jul 04 01:41:46 1999 +0000
+++ b/sys/sys/vnode_if.h        Sun Jul 04 01:42:26 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnode_if.h,v 1.15.4.2 1999/07/01 23:50:37 thorpej Exp $        */
+/*     $NetBSD: vnode_if.h,v 1.15.4.3 1999/07/04 01:42:27 chs Exp $    */
 
 /*
  * Warning: This file is generated automatically.
@@ -902,6 +902,37 @@
        return (VCALL(pvp, VOFFSET(vop_valloc), &a));
 }
 
+struct vop_balloc_args {
+       struct vnodeop_desc *a_desc;
+       struct vnode *a_vp;
+       off_t a_offset;
+       int a_size;
+       struct ucred *a_cred;
+       int a_flags;
+       struct buf **a_bpp;
+};
+extern struct vnodeop_desc vop_balloc_desc;
+static __inline int VOP_BALLOC __P((struct vnode *, off_t, int, 
+    struct ucred *, int, struct buf **)) __attribute__((__unused__));
+static __inline int VOP_BALLOC(vp, offset, size, cred, flags, bpp)
+       struct vnode *vp;
+       off_t offset;
+       int size;
+       struct ucred *cred;
+       int flags;
+       struct buf **bpp;
+{
+       struct vop_balloc_args a;
+       a.a_desc = VDESC(vop_balloc);
+       a.a_vp = vp;
+       a.a_offset = offset;
+       a.a_size = size;
+       a.a_cred = cred;
+       a.a_flags = flags;
+       a.a_bpp = bpp;
+       return (VCALL(vp, VOFFSET(vop_balloc), &a));
+}
+
 struct vop_reallocblks_args {
        struct vnodeop_desc *a_desc;
        struct vnode *a_vp;



Home | Main Index | Thread Index | Old Index