Lines Matching full:mp

66 devfs_mount(struct mount *mp)  in devfs_mount()  argument
79 if (mp->mnt_flag & MNT_ROOTFS) in devfs_mount()
85 if (mp->mnt_optnew != NULL) { in devfs_mount()
86 if (vfs_filteropt(mp->mnt_optnew, devfs_opts)) in devfs_mount()
89 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) in devfs_mount()
92 if (vfs_getopt(mp->mnt_optnew, "ruleset", NULL, NULL) == 0 && in devfs_mount()
93 (vfs_scanopt(mp->mnt_optnew, "ruleset", "%d", in devfs_mount()
95 vfs_mount_error(mp, "%s", in devfs_mount()
109 if (mp->mnt_flag & MNT_UPDATE) { in devfs_mount()
111 fmp = mp->mnt_data; in devfs_mount()
127 MNT_ILOCK(mp); in devfs_mount()
128 mp->mnt_flag |= MNT_LOCAL; in devfs_mount()
129 mp->mnt_kern_flag |= MNTK_LOOKUP_SHARED | MNTK_EXTENDED_SHARED | in devfs_mount()
132 mp->mnt_flag |= MNT_MULTILABEL; in devfs_mount()
134 MNT_IUNLOCK(mp); in devfs_mount()
135 fmp->dm_mount = mp; in devfs_mount()
136 mp->mnt_data = (void *) fmp; in devfs_mount()
137 vfs_getnewfsid(mp); in devfs_mount()
141 error = devfs_root(mp, LK_EXCLUSIVE, &rvp); in devfs_mount()
156 vfs_cache_root_set(mp, rvp); in devfs_mount()
158 vfs_mountedfrom(mp, "devfs"); in devfs_mount()
171 devfs_unmount(struct mount *mp, int mntflags) in devfs_unmount() argument
179 fmp = VFSTODEVFS(mp); in devfs_unmount()
185 error = vflush(mp, 1, flags, curthread); in devfs_unmount()
193 mp->mnt_data = NULL; in devfs_unmount()
205 devfs_root(struct mount *mp, int flags, struct vnode **vpp) in devfs_root() argument
211 dmp = VFSTODEVFS(mp); in devfs_root()
213 error = devfs_allocv(dmp->dm_rootdir, mp, LK_EXCLUSIVE, &vp); in devfs_root()
222 devfs_statfs(struct mount *mp, struct statfs *sbp) in devfs_statfs() argument
225 sbp->f_flags = mp->mnt_flag & MNT_IGNORE; in devfs_statfs()