*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: vfs_getnewfsid | Section: 9 | Source: FreeBSD | File: vfs_getnewfsid.9.gz
VFS_GETNEWFSID(9) FreeBSD Kernel Developer's Manual VFS_GETNEWFSID(9) NAME vfs_getnewfsid - allocate a new file system identifier SYNOPSIS #include <sys/param.h> #include <sys/mount.h> void vfs_getnewfsid(struct mount *mp); DESCRIPTION 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 xxx_mount(struct mount *mp, char *path, caddr_t data, struct nameidata *ndp, struct thread *td) { ... vfs_getnewfsid(mp); ... } SEE ALSO vfs_getvfs(9) AUTHORS This manual page was written by Chad David <[email protected]>. FreeBSD 14.1-RELEASE-p8 November 21, 2001 FreeBSD 14.1-RELEASE-p8

Navigation Options