summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs/devfs_vfsops.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-08-13 10:05:50 +0000
committerphk <phk@FreeBSD.org>2002-08-13 10:05:50 +0000
commite4f487f25e655eea952eee59b10d458e56eeb30d (patch)
tree7644f325648e3c87438ca1fef6504d5772e336d2 /sys/fs/devfs/devfs_vfsops.c
parent294097ed71af31961af5ded01883a93b24152d52 (diff)
downloadFreeBSD-src-e4f487f25e655eea952eee59b10d458e56eeb30d.zip
FreeBSD-src-e4f487f25e655eea952eee59b10d458e56eeb30d.tar.gz
Introduce typedefs for the member functions of struct vfsops and employ
these in the main filesystems. This does not change the resulting code but makes the source a little bit more grepable. Sponsored by: DARPA and NAI Labs.
Diffstat (limited to 'sys/fs/devfs/devfs_vfsops.c')
-rw-r--r--sys/fs/devfs/devfs_vfsops.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/sys/fs/devfs/devfs_vfsops.c b/sys/fs/devfs/devfs_vfsops.c
index 319a0b7..9b2e174 100644
--- a/sys/fs/devfs/devfs_vfsops.c
+++ b/sys/fs/devfs/devfs_vfsops.c
@@ -52,19 +52,16 @@
MALLOC_DEFINE(M_DEVFS, "DEVFS", "DEVFS data");
-static int devfs_mount(struct mount *mp, struct nameidata *ndp,
- struct thread *td);
-static int devfs_unmount(struct mount *mp, int mntflags,
- struct thread *td);
-static int devfs_root(struct mount *mp, struct vnode **vpp);
-static int devfs_statfs(struct mount *mp, struct statfs *sbp,
- struct thread *td);
+static vfs_nmount_t devfs_nmount;
+static vfs_unmount_t devfs_unmount;
+static vfs_root_t devfs_root;
+static vfs_statfs_t devfs_statfs;
/*
* Mount the filesystem
*/
static int
-devfs_mount(mp, ndp, td)
+devfs_nmount(mp, ndp, td)
struct mount *mp;
struct nameidata *ndp;
struct thread *td;
@@ -201,7 +198,7 @@ static struct vfsops devfs_vfsops = {
vfs_stdinit,
vfs_stduninit,
vfs_stdextattrctl,
- devfs_mount,
+ devfs_nmount,
};
VFS_SET(devfs_vfsops, devfs, VFCF_SYNTHETIC);
OpenPOWER on IntegriCloud