summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-05-02 20:25:55 +0000
committermux <mux@FreeBSD.org>2002-05-02 20:25:55 +0000
commitbd5dc603e6bce2a255d839edae4e1e8baae176f6 (patch)
tree83e32436df530353573af05f73573e3fb5def79a /sys
parent587c11370f79cbebb414fcc077c2faeabee93f4f (diff)
downloadFreeBSD-src-bd5dc603e6bce2a255d839edae4e1e8baae176f6.zip
FreeBSD-src-bd5dc603e6bce2a255d839edae4e1e8baae176f6.tar.gz
Convert the pseudofs framework to nmount (thus procfs and linprocfs).
Reviewed by: des (some time ago), phk
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/pseudofs/pseudofs.c4
-rw-r--r--sys/fs/pseudofs/pseudofs.h12
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/fs/pseudofs/pseudofs.c b/sys/fs/pseudofs/pseudofs.c
index 5b9a24f..538b233 100644
--- a/sys/fs/pseudofs/pseudofs.c
+++ b/sys/fs/pseudofs/pseudofs.c
@@ -240,8 +240,8 @@ pfs_destroy(struct pfs_node *node)
* Mount a pseudofs instance
*/
int
-pfs_mount(struct pfs_info *pi, struct mount *mp, char *path, caddr_t data,
- struct nameidata *ndp, struct thread *td)
+pfs_mount(struct pfs_info *pi, struct mount *mp, struct nameidata *ndp,
+ struct thread *td)
{
struct statfs *sbp;
diff --git a/sys/fs/pseudofs/pseudofs.h b/sys/fs/pseudofs/pseudofs.h
index 4017978..6569e2c 100644
--- a/sys/fs/pseudofs/pseudofs.h
+++ b/sys/fs/pseudofs/pseudofs.h
@@ -197,8 +197,7 @@ struct pfs_node {
/*
* VFS interface
*/
-int pfs_mount (struct pfs_info *pi,
- struct mount *mp, char *path, caddr_t data,
+int pfs_mount (struct pfs_info *pi, struct mount *mp,
struct nameidata *ndp, struct thread *td);
int pfs_unmount (struct mount *mp, int mntflags,
struct thread *td);
@@ -235,9 +234,9 @@ static struct pfs_info name##_info = { \
}; \
\
static int \
-_##name##_mount(struct mount *mp, char *path, caddr_t data, \
- struct nameidata *ndp, struct thread *td) { \
- return pfs_mount(&name##_info, mp, path, data, ndp, td); \
+_##name##_mount(struct mount *mp, struct nameidata *ndp, \
+ struct thread *td) { \
+ return pfs_mount(&name##_info, mp, ndp, td); \
} \
\
static int \
@@ -251,7 +250,7 @@ _##name##_uninit(struct vfsconf *vfc) { \
} \
\
static struct vfsops name##_vfsops = { \
- _##name##_mount, \
+ NULL, \
vfs_stdstart, \
pfs_unmount, \
pfs_root, \
@@ -265,6 +264,7 @@ static struct vfsops name##_vfsops = { \
_##name##_init, \
_##name##_uninit, \
vfs_stdextattrctl, \
+ _##name##_mount, \
}; \
VFS_SET(name##_vfsops, name, VFCF_SYNTHETIC); \
MODULE_VERSION(name, version); \
OpenPOWER on IntegriCloud