Lines Matching defs:mp
34 #define VFSMP2SFGLOBINFO(mp) ((struct sf_glob_info *)mp->mnt_data)
95 static int vboxvfs_mount(struct mount *mp, struct thread *td)
107 if (mp->mnt_flag & (MNT_UPDATE | MNT_ROOTFS))
110 if (vfs_filteropt(mp->mnt_optnew, vboxvfs_opts))
112 vfs_mount_error(mp, "%s", "Invalid option");
116 rc = vfs_getopt(mp->mnt_optnew, "from", (void **)&pszShare, &cbShare);
120 rc = vfs_getopt(mp->mnt_optnew, "gid", (void **)&gid, &cbOption);
124 rc = vfs_getopt(mp->mnt_optnew, "uid", (void **)&uid, &cbOption);
154 mp->mnt_data = pShFlGlobalInfo;
158 vfs_getnewfsid(mp);
159 vfs_mountedfrom(mp, pszShare);
166 static int vboxvfs_unmount(struct mount *mp, int mntflags, struct thread *td)
168 struct sf_glob_info *pShFlGlobalInfo = VFSMP2SFGLOBINFO(mp);
180 rc = vflush(mp, 1, flags, td);
186 mp->mnt_data = NULL;
191 static int vboxvfs_root(struct mount *mp, int flags, struct vnode **vpp, struct thread *td)
194 struct sf_glob_info *pShFlGlobalInfo = VFSMP2SFGLOBINFO(mp);
210 static int vboxvfs_quotactl(struct mount *mp, int cmd, uid_t uid, void *arg, struct thread *td)
255 int vboxvfs_statfs(struct mount *mp, struct statfs *sbp, struct thread *td)