diff options
Diffstat (limited to 'sys/miscfs/procfs/procfs_vfsops.c')
-rw-r--r-- | sys/miscfs/procfs/procfs_vfsops.c | 45 |
1 files changed, 39 insertions, 6 deletions
diff --git a/sys/miscfs/procfs/procfs_vfsops.c b/sys/miscfs/procfs/procfs_vfsops.c index d20bf8c8a53..e13d196f499 100644 --- a/sys/miscfs/procfs/procfs_vfsops.c +++ b/sys/miscfs/procfs/procfs_vfsops.c @@ -1,4 +1,5 @@ -/* $NetBSD: procfs_vfsops.c,v 1.24 1995/06/18 14:47:39 cgd Exp $ */ +/* $OpenBSD: procfs_vfsops.c,v 1.2 1996/02/27 08:03:38 niklas Exp $ */ +/* $NetBSD: procfs_vfsops.c,v 1.25 1996/02/09 22:40:53 christos Exp $ */ /* * Copyright (c) 1993 Jan-Simon Pendry @@ -46,6 +47,7 @@ #include <sys/param.h> #include <sys/time.h> #include <sys/kernel.h> +#include <sys/systm.h> #include <sys/proc.h> #include <sys/buf.h> #include <sys/syslog.h> @@ -55,12 +57,25 @@ #include <miscfs/procfs/procfs.h> #include <vm/vm.h> /* for PAGE_SIZE */ +int procfs_mount __P((struct mount *, char *, caddr_t, + struct nameidata *, struct proc *)); +int procfs_start __P((struct mount *, int, struct proc *)); +int procfs_unmount __P((struct mount *, int, struct proc *)); +int procfs_quotactl __P((struct mount *, int, uid_t, caddr_t, + struct proc *)); +int procfs_statfs __P((struct mount *, struct statfs *, struct proc *)); +int procfs_sync __P((struct mount *, int, struct ucred *, struct proc *)); +int procfs_vget __P((struct mount *, ino_t, struct vnode **)); +int procfs_fhtovp __P((struct mount *, struct fid *, struct mbuf *, + struct vnode **, int *, struct ucred **)); +int procfs_vptofh __P((struct vnode *, struct fid *)); /* * VFS Operations. * * mount system call */ /* ARGSUSED */ +int procfs_mount(mp, path, data, ndp, p) struct mount *mp; char *path; @@ -92,6 +107,7 @@ procfs_mount(mp, path, data, ndp, p) /* * unmount system call */ +int procfs_unmount(mp, mntflags, p) struct mount *mp; int mntflags; @@ -108,12 +124,13 @@ procfs_unmount(mp, mntflags, p) flags |= FORCECLOSE; } - if (error = vflush(mp, 0, flags)) + if ((error = vflush(mp, 0, flags)) != 0) return (error); return (0); } +int procfs_root(mp, vpp) struct mount *mp; struct vnode **vpp; @@ -123,6 +140,7 @@ procfs_root(mp, vpp) } /* ARGSUSED */ +int procfs_start(mp, flags, p) struct mount *mp; int flags; @@ -135,6 +153,7 @@ procfs_start(mp, flags, p) /* * Get file system statistics. */ +int procfs_statfs(mp, sbp, p) struct mount *mp; struct statfs *sbp; @@ -162,6 +181,8 @@ procfs_statfs(mp, sbp, p) return (0); } +/*ARGSUSED*/ +int procfs_quotactl(mp, cmds, uid, arg, p) struct mount *mp; int cmds; @@ -173,14 +194,20 @@ procfs_quotactl(mp, cmds, uid, arg, p) return (EOPNOTSUPP); } -procfs_sync(mp, waitfor) +/*ARGSUSED*/ +int +procfs_sync(mp, waitfor, uc, p) struct mount *mp; int waitfor; + struct ucred *uc; + struct proc *p; { return (0); } +/*ARGSUSED*/ +int procfs_vget(mp, ino, vpp) struct mount *mp; ino_t ino; @@ -190,15 +217,22 @@ procfs_vget(mp, ino, vpp) return (EOPNOTSUPP); } -procfs_fhtovp(mp, fhp, vpp) +/*ARGSUSED*/ +int +procfs_fhtovp(mp, fhp, mb, vpp, what, anon) struct mount *mp; struct fid *fhp; + struct mbuf *mb; struct vnode **vpp; + int *what; + struct ucred **anon; { return (EINVAL); } +/*ARGSUSED*/ +int procfs_vptofh(vp, fhp) struct vnode *vp; struct fid *fhp; @@ -207,10 +241,9 @@ procfs_vptofh(vp, fhp) return (EINVAL); } +void procfs_init() { - - return (0); } struct vfsops procfs_vfsops = { |