vfs_getnewfsid - allocate a new file system identifier
The actual Vt fsid is made up of two 32 bit integers, that are stored in the Vt statfs structure of Fa 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;
xxx_mount(struct mount *mp, char *path, caddr_t data,
struct nameidata *ndp, struct thread *td)
{
...
vfs_getnewfsid(mp);
...
}
|
Закладки на сайте Проследить за страницей |
Created 1996-2025 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |