summaryrefslogtreecommitdiff
path: root/sys/miscfs/kernfs/kernfs_vfsops.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-02-27 07:55:20 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-02-27 07:55:20 +0000
commit8a05be43b162792dfbbfe8ca0aaef2bc3105ebb4 (patch)
treeb6d2847a8848fd361226d5de81647e83923559c3 /sys/miscfs/kernfs/kernfs_vfsops.c
parent90a020136c624f2d26b04b43b131e0dd2a8a7c95 (diff)
From NetBSD: update to 960217 sources
Diffstat (limited to 'sys/miscfs/kernfs/kernfs_vfsops.c')
-rw-r--r--sys/miscfs/kernfs/kernfs_vfsops.c52
1 files changed, 44 insertions, 8 deletions
diff --git a/sys/miscfs/kernfs/kernfs_vfsops.c b/sys/miscfs/kernfs/kernfs_vfsops.c
index e224cabed8c..830a32e4bd4 100644
--- a/sys/miscfs/kernfs/kernfs_vfsops.c
+++ b/sys/miscfs/kernfs/kernfs_vfsops.c
@@ -1,4 +1,5 @@
-/* $NetBSD: kernfs_vfsops.c,v 1.24 1995/06/18 14:47:27 cgd Exp $ */
+/* $OpenBSD: kernfs_vfsops.c,v 1.2 1996/02/27 07:55:18 niklas Exp $ */
+/* $NetBSD: kernfs_vfsops.c,v 1.25 1996/02/09 22:40:22 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -51,15 +52,33 @@
#include <sys/mount.h>
#include <sys/namei.h>
#include <sys/malloc.h>
+#include <sys/cpu.h>
#include <miscfs/specfs/specdev.h>
#include <miscfs/kernfs/kernfs.h>
dev_t rrootdev = NODEV;
+void kernfs_init __P((void));
+void kernfs_get_rrootdev __P((void));
+int kernfs_mount __P((struct mount *, char *, caddr_t, struct nameidata *,
+ struct proc *));
+int kernfs_start __P((struct mount *, int, struct proc *));
+int kernfs_unmount __P((struct mount *, int, struct proc *));
+int kernfs_root __P((struct mount *, struct vnode **));
+int kernfs_statfs __P((struct mount *, struct statfs *, struct proc *));
+int kernfs_quotactl __P((struct mount *, int, uid_t, caddr_t,
+ struct proc *));
+int kernfs_sync __P((struct mount *, int, struct ucred *, struct proc *));
+int kernfs_vget __P((struct mount *, ino_t, struct vnode **));
+int kernfs_fhtovp __P((struct mount *, struct fid *, struct mbuf *,
+ struct vnode **, int *, struct ucred **));
+int kernfs_vptofh __P((struct vnode *, struct fid *));
+
+/*ARGSUSED*/
+void
kernfs_init()
{
-
}
void
@@ -88,6 +107,7 @@ kernfs_get_rrootdev()
/*
* Mount the Kernel params filesystem
*/
+int
kernfs_mount(mp, path, data, ndp, p)
struct mount *mp;
char *path;
@@ -110,7 +130,8 @@ kernfs_mount(mp, path, data, ndp, p)
if (mp->mnt_flag & MNT_UPDATE)
return (EOPNOTSUPP);
- if (error = getnewvnode(VT_KERNFS, mp, kernfs_vnodeop_p, &rvp))
+ error = getnewvnode(VT_KERNFS, mp, kernfs_vnodeop_p, &rvp);
+ if (error)
return (error);
MALLOC(fmp, struct kernfs_mount *, sizeof(struct kernfs_mount),
@@ -137,6 +158,7 @@ kernfs_mount(mp, path, data, ndp, p)
return (0);
}
+int
kernfs_start(mp, flags, p)
struct mount *mp;
int flags;
@@ -146,6 +168,7 @@ kernfs_start(mp, flags, p)
return (0);
}
+int
kernfs_unmount(mp, mntflags, p)
struct mount *mp;
int mntflags;
@@ -177,7 +200,7 @@ kernfs_unmount(mp, mntflags, p)
#ifdef KERNFS_DIAGNOSTIC
printf("kernfs_unmount: calling vflush\n");
#endif
- if (error = vflush(mp, rootvp, flags))
+ if ((error = vflush(mp, rootvp, flags)) != 0)
return (error);
#ifdef KERNFS_DIAGNOSTIC
@@ -196,6 +219,7 @@ kernfs_unmount(mp, mntflags, p)
return (0);
}
+int
kernfs_root(mp, vpp)
struct mount *mp;
struct vnode **vpp;
@@ -216,6 +240,7 @@ kernfs_root(mp, vpp)
return (0);
}
+int
kernfs_quotactl(mp, cmd, uid, arg, p)
struct mount *mp;
int cmd;
@@ -227,6 +252,7 @@ kernfs_quotactl(mp, cmd, uid, arg, p)
return (EOPNOTSUPP);
}
+int
kernfs_statfs(mp, sbp, p)
struct mount *mp;
struct statfs *sbp;
@@ -258,9 +284,13 @@ kernfs_statfs(mp, sbp, p)
return (0);
}
-kernfs_sync(mp, waitfor)
+/*ARGSUSED*/
+int
+kernfs_sync(mp, waitfor, uc, p)
struct mount *mp;
int waitfor;
+ struct ucred *uc;
+ struct proc *p;
{
return (0);
@@ -270,6 +300,7 @@ kernfs_sync(mp, waitfor)
* Kernfs flat namespace lookup.
* Currently unsupported.
*/
+int
kernfs_vget(mp, ino, vpp)
struct mount *mp;
ino_t ino;
@@ -279,17 +310,22 @@ kernfs_vget(mp, ino, vpp)
return (EOPNOTSUPP);
}
-
-kernfs_fhtovp(mp, fhp, setgen, vpp)
+/*ARGSUSED*/
+int
+kernfs_fhtovp(mp, fhp, mb, vpp, what, anon)
struct mount *mp;
struct fid *fhp;
- int setgen;
+ struct mbuf *mb;
struct vnode **vpp;
+ int *what;
+ struct ucred **anon;
{
return (EOPNOTSUPP);
}
+/*ARGSUSED*/
+int
kernfs_vptofh(vp, fhp)
struct vnode *vp;
struct fid *fhp;