Query: vfs_getnewfsid
OS: debian
Section: 9
Links: debian man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
VFS_GETNEWFSID(9) BSD Kernel Developer's Manual VFS_GETNEWFSID(9)NAMEvfs_getnewfsid -- allocate a new file system identifierSYNOPSIS#include <sys/param.h> #include <sys/mount.h> void vfs_getnewfsid(struct mount *mp);DESCRIPTIONThe vfs_getnewfsid() function allocates a new file system identifier for the mount point given. File systems typically call vfs_getnewfsid() in their mount routine in order to acquire a unique ID within the system which can later be used to uniquely identify the file system via calls such as vfs_getvfs(9). The actual fsid is made up of two 32 bit integers, that are stored in the statfs structure of mp. The first integer is unique in the set of mounted file systems, while the second holds the file system type. typedef struct fsid { int32_t val[2]; } fsid_t;PSEUDOCODExxx_mount(struct mount *mp, char *path, caddr_t data, struct nameidata *ndp, struct thread *td) { ... vfs_getnewfsid(mp); ... }SEE ALSOvfs_getvfs(9)AUTHORSThis manual page was written by Chad David <davidc@acns.ab.ca>.BSDNovember 21, 2001 BSD
Related Man Pages |
---|
vfs_export_lookup(9) - netbsd |
vfs_detach(9) - netbsd |
vfs_mountalloc(9) - netbsd |
vfs_getvfs(9) - netbsd |
vfs_mountroot(9) - netbsd |
Similar Topics in the Unix Linux Community |
---|
awk or sed - Convert 2 lines to 1 line |
Weird 'find' results |
A (ksh) Library For and From UNIX.com |
My first PERL incarnation... Audio Oscillograph |