*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> vfs_getnewfsid (9)              
Title
Content
Arch
Section
 

VFS_GETNEWFSID(9)

Contents


NAME    [Toc]    [Back]

     vfs_getnewfsid -- allocate a new file system identifier

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <sys/mount.h>

     void
     vfs_getnewfsid(struct mount *mp);

DESCRIPTION    [Toc]    [Back]

     The 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;

PSEUDOCODE    [Toc]    [Back]

     xxx_mount(struct mount *mp, char *path, caddr_t data,
	     struct nameidata *ndp, struct thread *td)
     {
	     ...
	     vfs_getnewfsid(mp);
	     ...
     }

SEE ALSO    [Toc]    [Back]

      
      
     vfs_getvfs(9)

AUTHORS    [Toc]    [Back]

     This manual page was written by Chad David <[email protected]>.


FreeBSD 5.2.1		       November 21, 2001		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
vfs_getvfs FreeBSD returns a mount point given its file system identifier
AFopenfile IRIX allocate an AFfilehandle structure for an audio file identified by name / by a Unix file descriptor
hostid IRIX set or print identifier of current host system
sysid IRIX return pseudo-unique system identifier
semmsl HP-UX maximum number of System V IPC semaphores per identifier
ftok Linux convert a pathname and a project identifier to a System V IPC key
mount_nullfs FreeBSD mount a loopback file system sub-tree; demonstrate the use of a null file system layer
pthread_equal Tru64 Compares one thread identifier to another thread identifier
vxfsconvert HP-UX convert a file system to a vxfs file system or upgrade a VxFS disk layout version.
fattach Tru64 Attach a STREAMS-based file descriptor to a file in the file system name space
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service