NAME
vfsconf — vfs configuration informationSYNOPSIS
#include <sys/param.h>#include <sys/mount.h> int
vfs_register(struct vfsconf *vfc); int
vfs_unregister(struct vfsconf *vfc); int
vfs_modevent(module_t mod, int type, void *data);
DESCRIPTION
Each file system type known to the kernel has a vfsconf structure that contains the information required to create a new mount of that file systems type.struct vfsconf { struct vfsops *vfc_vfsops; /* file system operations vector */ char vfc_name[MFSNAMELEN]; /* file system type name */ int vfc_typenum; /* historic file system type number */ int vfc_refcount; /* number mounted of this type */ int vfc_flags; /* permanent flags */ struct vfsconf *vfc_next; /* next in list */ };
MOD_LOAD
,
vfs_register() is called. In the case of
MOD_UNLOAD
,
vfs_unregister() is called.
RETURN VALUES
vfs_register() returns 0 if successful; otherwise,EEXIST
is returned indicating that the file
system type has already been registered.
vfs_unregister() returns 0 if successful. If no
vfsconf entry can be found matching the name
in vfc,
EINVAL
is returned. If the reference count
of mounted instances of the file system type is not zero,
EBUSY
is returned. If
vfs_uninit() is called, any errors it returns
will be returned by vfs_unregister().
vfs_modevent() returns the result of the call to
vfs_register() or
vfs_unregister(), whatever the case.
SEE ALSO
mount(2), vfs_rootmountalloc(9), VFS_SET(9)AUTHORS
This manual page was written by Chad David <[email protected]>.June 16, 2013 | Debian |