Home
last modified time | relevance | path

Searched refs:mp (Results 1 – 25 of 119) sorted by relevance

12345

/xnu-11215/bsd/vfs/
H A Dvfs_disk_conditioner.c47 #define BLK_MAX(mp) ((mp->mnt_vfsstat.f_blocks * mp->mnt_vfsstat.f_bsize) / (mp->mnt_devblocksize)) argument
90 mount_t mp; in disk_conditioner_delay() local
106 mp = vp->v_mount; in disk_conditioner_delay()
107 if (!mp) { in disk_conditioner_delay()
123 blkdiff = BLK_MAX(mp); in disk_conditioner_delay()
190 if (!mp) { in disk_conditioner_get_info()
225 if (!mp) { in disk_conditioner_set_info()
229 mount_lock(mp); in disk_conditioner_set_info()
283 mount_unlock(mp); in disk_conditioner_set_info()
294 disk_conditioner_unmount(mount_t mp) in disk_conditioner_unmount() argument
[all …]
H A Dvfs_init.c315 struct mount * mp; in vfsinit() local
390 mp = &dead_mount_store; in vfsinit()
392 mp->mnt_maxreadcnt = mp->mnt_maxwritecnt = MAXPHYS; in vfsinit()
393 mp->mnt_segreadcnt = mp->mnt_segwritecnt = 32; in vfsinit()
394 mp->mnt_maxsegreadsize = mp->mnt_maxreadcnt; in vfsinit()
395 mp->mnt_maxsegwritesize = mp->mnt_maxwritecnt; in vfsinit()
399 mp->mnt_ioscale = 1; in vfsinit()
400 mp->mnt_ioflags = 0; in vfsinit()
407 mp->mnt_flag = MNT_LOCAL; in vfsinit()
409 mount_lock_init(mp); in vfsinit()
[all …]
H A Dvfs_subr.c717 mount_t mp; member
782 hook.mp = mp; in vnode_iterate()
1123 mp->mnt_maxreadcnt = mp->mnt_maxwritecnt = MAXPHYS; in vfs_rootmountalloc_internal()
1124 mp->mnt_segreadcnt = mp->mnt_segwritecnt = 32; in vfs_rootmountalloc_internal()
1125 mp->mnt_maxsegreadsize = mp->mnt_maxreadcnt; in vfs_rootmountalloc_internal()
1126 mp->mnt_maxsegwritesize = mp->mnt_maxwritecnt; in vfs_rootmountalloc_internal()
1164 return mp; in vfs_rootmountalloc_internal()
1951 if (mp != NULL && mp->mnt_op != ops) { in vfs_getvfs_with_vfsops()
2409 if (!mp || (!(mp->mnt_kern_flag & MNTK_VIRTUALDEV) && (mp->mnt_flag & MNT_LOCAL))) { in vnode_on_reliable_media()
4458 mp->mnt_devbsdunit = mp->mnt_throttle_mask ? in vfs_init_io_attributes()
[all …]
H A Dkpi_vfs.c208 error = (*mp->mnt_op->vfs_mount)(mp, devvp, data, ctx); in VFS_MOUNT()
223 error = (*mp->mnt_op->vfs_start)(mp, flags, ctx); in VFS_START()
237 error = (*mp->mnt_op->vfs_unmount)(mp, flags, ctx); in VFS_UNMOUNT()
272 error = (*mp->mnt_op->vfs_root)(mp, vpp, ctx); in VFS_ROOT()
304 error = (*mp->mnt_op->vfs_getattr)(mp, vfa, ctx); in VFS_GETATTR()
322 error = (*mp->mnt_op->vfs_setattr)(mp, vfa, ctx); in VFS_SETATTR()
340 error = (*mp->mnt_op->vfs_sync)(mp, flags, ctx); in VFS_SYNC()
358 error = (*mp->mnt_op->vfs_vget)(mp, ino, vpp, ctx); in VFS_VGET()
403 if (mp == dead_mountp || !mp->mnt_op->vfs_ioctl) { in VFS_IOCTL()
407 return mp->mnt_op->vfs_ioctl(mp, command, data, flags, in VFS_IOCTL()
[all …]
H A Dvfs_syscalls.c965 mp = (mp->mnt_vnodecovered ? mp->mnt_vnodecovered->v_mount : NULL); in __mac_mount()
970 mp = (mp->mnt_vnodecovered ? mp->mnt_vnodecovered->v_mount : NULL); in __mac_mount()
1274 mp->mnt_maxreadcnt = mp->mnt_maxwritecnt = MAXPHYS; in mount_common()
1275 mp->mnt_segreadcnt = mp->mnt_segwritecnt = 32; in mount_common()
1276 mp->mnt_maxsegreadsize = mp->mnt_maxreadcnt; in mount_common()
1277 mp->mnt_maxsegwritesize = mp->mnt_maxwritecnt; in mount_common()
3061 mp->mnt_triggercallback(mp, VTC_RELEASE, mp->mnt_triggerdata, ctx); in dounmount()
3063 mp->mnt_triggercallback(mp, VTC_REPLACE, mp->mnt_triggerdata, ctx); in dounmount()
3838 error = mac_mount_label_get(mp, *fstp->mp); in getfsstat_callback()
3954 fst.mp = mp; in __mac_getfsstat()
[all …]
/xnu-11215/bsd/sys/
H A Dmount.h912 uint64_t vfs_flags(mount_t mp);
956 int vfs_isupdate(mount_t mp);
965 int vfs_isreload(mount_t mp);
974 int vfs_isforce(mount_t mp);
984 int vfs_isunmount(mount_t mp);
992 int vfs_isrdonly(mount_t mp);
1000 int vfs_isrdwr(mount_t mp);
1195 int vfs_typenum(mount_t mp);
1261 void vfs_unbusy(mount_t mp);
1344 void vfs_setfskit(mount_t mp);
[all …]
/xnu-11215/bsd/miscfs/mockfs/
H A Dmockfs_vfsops.c44 int mockfs_mountroot(mount_t mp, vnode_t rvp, __unused vfs_context_t ctx);
50 int mockfs_root(mount_t mp, vnode_t * vpp, __unused vfs_context_t ctx);
65 mockfs_mountroot(mount_t mp, vnode_t rvp, __unused vfs_context_t ctx) in mockfs_mountroot() argument
84 mockfs_fsnode_create(mp, MOCKFS_ROOT, &root_fsnode); in mockfs_mountroot()
85 mockfs_fsnode_create(mp, MOCKFS_DEV, &dev_fsnode); in mockfs_mountroot()
86 mockfs_fsnode_create(mp, MOCKFS_FILE, &file_fsnode); in mockfs_mountroot()
127 mp->mnt_data = (typeof(mp->mnt_data))mockfs_mount_data; in mockfs_mountroot()
164 mockfs_mnt = (mockfs_mount_t) mp->mnt_data; in mockfs_unmount()
174 rvalue = vflush(mp, NULL, vflush_flags); in mockfs_unmount()
196 mp->mnt_data = NULL; in mockfs_unmount()
[all …]
/xnu-11215/bsd/miscfs/devfs/
H A Ddevfs_vfsops.c180 if (mp->mnt_flag & MNT_UPDATE) { in devfs_mount()
185 vfs_setlocklocal(mp); in devfs_mount()
195 devfs_mp_p->mount = mp; in devfs_mount()
202 mp->mnt_vfsstat.f_fsid.val[1] = vfs_typenum(mp); in devfs_mount()
203 mp->mnt_flag |= MNT_LOCAL; in devfs_mount()
210 mp->mnt_data = (qaddr_t)0; in devfs_mount()
226 (void)devfs_statfs(mp, &mp->mnt_vfsstat, ctx); in devfs_mount()
253 error = vflush(mp, NULLVP, flags); in devfs_unmount()
265 mp->mnt_data = (qaddr_t)0; in devfs_unmount()
266 mp->mnt_flag &= ~MNT_LOCAL; in devfs_unmount()
[all …]
/xnu-11215/bsd/miscfs/bindfs/
H A Dbind_vfsops.c129 BINDFSDEBUG("mp = %p %llx\n", (void *)mp, vfs_flags(mp)); in bindfs_mount()
138 if (vfs_isupdate(mp)) { in bindfs_mount()
220 vfs_setflags(mp, flags); in bindfs_mount()
222 vfs_setfsprivate(mp, xmp); in bindfs_mount()
223 vfs_getnewfsid(mp); in bindfs_mount()
224 vfs_setlocklocal(mp); in bindfs_mount()
227 sp = vfs_statfs(mp); in bindfs_mount()
330 mntdata = MOUNTTOBINDMOUNT(mp); in bindfs_unmount()
337 error = vflush(mp, vp, flags); in bindfs_unmount()
356 vfs_setfsprivate(mp, NULL); in bindfs_unmount()
[all …]
H A Dbind_subr.c129 bind_hashget(struct mount * mp, struct vnode * lowervp, struct vnode ** vpp) in bind_hashget() argument
147 if (a->bind_lowervp == lowervp && vnode_mount(BINDTOV(a)) == mp) { in bind_hashget()
183 bind_hashins(struct mount * mp, struct bind_node * xp, struct vnode ** vpp) in bind_hashins() argument
195 if (oxp->bind_lowervp == xp->bind_lowervp && vnode_mount(BINDTOV(oxp)) == mp) { in bind_hashins()
260 …struct mount * mp, struct vnode * lowervp, struct vnode * dvp, struct vnode ** vpp, struct compone… in bind_getnewvnode() argument
275 vnfs_param.vnfs_mp = mp; in bind_getnewvnode()
307 …struct mount * mp, struct vnode * lowervp, struct vnode * dvp, struct vnode ** vpp, struct compone… in bind_nodeget() argument
313 error = bind_hashget(mp, lowervp, vpp); in bind_nodeget()
334 error = bind_getnewvnode(mp, lowervp, dvp, &vp, cnp, root); in bind_nodeget()
345 error = bind_hashins(mp, VTOBIND(vp), vpp); in bind_nodeget()
H A Dbindfs.h123 #define MOUNTTOBINDMOUNT(mp) ((struct bind_mount *)(vfs_fsprivate(mp))) argument
132 …struct mount * mp, struct vnode * lowervp, struct vnode * dvp, struct vnode ** vpp, struct compone…
133 int bind_hashget(struct mount * mp, struct vnode * lowervp, struct vnode ** vpp);
135 …struct mount * mp, struct vnode * lowervp, struct vnode * dvp, struct vnode ** vpp, struct compone…
/xnu-11215/bsd/security/audit/
H A Daudit_bsd.h225 #define cv_wait(cvp, mp) _audit_cv_wait(cvp, (mp)->mtx_lock, #cvp) argument
226 #define cv_wait_sig(cvp, mp) _audit_cv_wait_sig(cvp, (mp)->mtx_lock, #cvp) argument
227 #define cv_wait_continuation(cvp, mp, f) \ argument
234 void _audit_mtx_destroy(struct mtx *mp);
235 #define mtx_init(mp, name, type, opts) \ argument
237 #define mtx_lock(mp) lck_mtx_lock((mp)->mtx_lock) argument
238 #define mtx_unlock(mp) lck_mtx_unlock((mp)->mtx_lock) argument
239 #define mtx_destroy(mp) _audit_mtx_destroy(mp) argument
240 #define mtx_yield(mp) lck_mtx_yield((mp)->mtx_lock) argument
291 #define mtx_assert(mp, wht) lck_mtx_assert((mp)->mtx_lock, wht) argument
[all …]
H A Daudit_bsd.c131 (void) msleep(cvp, mp, PZERO, desc, 0); in _audit_cv_wait()
144 return msleep(cvp, mp, PSOCK | PCATCH, desc, 0); in _audit_cv_wait_sig()
152 _audit_mtx_init(struct mtx *mp, const char *lckname) in _audit_mtx_init() argument
158 KASSERT(mp->mtx_lock != NULL, in _audit_mtx_init()
161 strlcpy(mp->mtx_name, lckname, AU_MAX_LCK_NAME); in _audit_mtx_init()
166 _audit_mtx_destroy(struct mtx *mp) in _audit_mtx_destroy() argument
168 if (mp->mtx_lock) { in _audit_mtx_destroy()
169 lck_mtx_free(mp->mtx_lock, &audit_lck_grp); in _audit_mtx_destroy()
170 mp->mtx_lock = NULL; in _audit_mtx_destroy()
212 lck_mtx_unlock(mp); in _audit_cv_wait_continuation()
[all …]
/xnu-11215/bsd/miscfs/nullfs/
H A Dnull_vfsops.c131 NULLFSDEBUG("nullfs_mount(mp = %p) %llx\n", (void *)mp, vfs_flags(mp)); in nullfs_mount()
133 if (vfs_flags(mp) & MNT_ROOTFS) { in nullfs_mount()
140 if (vfs_isupdate(mp)) { in nullfs_mount()
235 vfs_setflags(mp, flags); in nullfs_mount()
237 vfs_setfsprivate(mp, xmp); in nullfs_mount()
238 vfs_getnewfsid(mp); in nullfs_mount()
239 vfs_setlocklocal(mp); in nullfs_mount()
242 sp = vfs_statfs(mp); in nullfs_mount()
348 mntdata = MOUNTTONULLMOUNT(mp); in nullfs_unmount()
355 error = vflush(mp, vp, flags); in nullfs_unmount()
[all …]
H A Dnull_subr.c136 null_hashget(struct mount * mp, struct vnode * lowervp, struct vnode ** vpp) in null_hashget() argument
155 if (a->null_lowervp == lowervp && vnode_mount(NULLTOV(a)) == mp) { in null_hashget()
187 null_hashins(struct mount * mp, struct null_node * xp, struct vnode ** vpp) in null_hashins() argument
199 if (oxp->null_lowervp == xp->null_lowervp && vnode_mount(NULLTOV(oxp)) == mp) { in null_hashins()
266 …struct mount * mp, struct vnode * lowervp, struct vnode * dvp, struct vnode ** vpp, struct compone… in null_getnewvnode() argument
281 vnfs_param.vnfs_mp = mp; in null_getnewvnode()
313 …struct mount * mp, struct vnode * lowervp, struct vnode * dvp, struct vnode ** vpp, struct compone… in null_nodeget() argument
319 error = null_hashget(mp, lowervp, vpp); in null_nodeget()
340 error = null_getnewvnode(mp, lowervp, dvp, &vp, cnp, root); in null_nodeget()
351 error = null_hashins(mp, VTONULL(vp), vpp); in null_nodeget()
H A Dnullfs.h133 #define MOUNTTONULLMOUNT(mp) ((struct null_mount *)(vfs_fsprivate(mp))) argument
144 …struct mount * mp, struct vnode * lowervp, struct vnode * dvp, struct vnode ** vpp, struct compone…
145 int null_hashget(struct mount * mp, struct vnode * lowervp, struct vnode ** vpp);
147 …struct mount * mp, struct vnode * lowervp, struct vnode * dvp, struct vnode ** vpp, struct compone…
/xnu-11215/bsd/miscfs/routefs/
H A Droutefs_ops.c91 if (mp->mnt_flag & MNT_UPDATE) { in routefs_mount()
101 if (vfs_iskernelmount(mp) == FALSE) { in routefs_mount()
113 vfs_setlocklocal(mp); in routefs_mount()
124 routefs_mp_p->route_mount = mp; in routefs_mount()
145 mp->mnt_vfsstat.f_fsid.val[1] = vfs_typenum(mp); in routefs_mount()
146 mp->mnt_flag |= MNT_LOCAL; in routefs_mount()
157 (void)routefs_statfs(mp, &mp->mnt_vfsstat, ctx); in routefs_mount()
205 (void)vflush(mp, NULLVP, flags); in routefs_unmount()
207 mp->mnt_data = (qaddr_t)0; in routefs_unmount()
208 mp->mnt_flag &= ~MNT_LOCAL; in routefs_unmount()
[all …]
/xnu-11215/tools/lldbmacros/
H A Dmbufs.py106 mp = scan
107 while (mp):
147 mp = mnext
234 while (mp):
247 mp = mhnext
267 while (mp):
276 mp = mp.m_hdr.mh_nextpkt
278 mp = mp.M_hdr_common.M_hdr.mh_nextpkt
1098 while (mp):
1113 mp = mp.m_hdr.mh_nextpkt
[all …]
/xnu-11215/security/
H A Dmac_vfs.c407 mp, mp ? mac_mount_label(mp) : NULL, in mac_vnode_label_associate_devfs()
419 MAC_CHECK(vnode_label_associate_extattr, mp, mac_mount_label(mp), vp, in mac_vnode_label_associate_extattr()
441 mp ? mac_mount_label(mp) : NULL, vp, mac_vnode_label(vp)); in mac_vnode_label_associate_singlelabel()
463 MAC_CHECK(vnode_notify_create, cred, mp, mac_mount_label(mp), in mac_vnode_notify_create()
735 MAC_PERFORM(vnode_label_update_extattr, mp, mac_mount_label(mp), vp, in mac_vnode_label_update_extattr()
2241 MAC_PERFORM(mount_label_associate, cred, mp, mac_mount_label(mp)); in mac_mount_label_associate()
2432 MAC_CHECK(mount_check_umount, cred, mp, mac_mount_label(mp)); in mac_mount_check_umount()
2456 MAC_CHECK(mount_check_getattr, cred, mp, mac_mount_label(mp), vfa); in mac_mount_check_getattr()
2479 MAC_CHECK(mount_check_setattr, cred, mp, mac_mount_label(mp), vfa); in mac_mount_check_setattr()
2547 MAC_CHECK(mount_check_fsctl, cred, mp, mac_mount_label(mp), cmd); in mac_mount_check_fsctl()
[all …]
/xnu-11215/tests/
H A Dkqueue_port_tests.c60 .ident = mp, in fill_kevent()
91 mach_port_t mp, pset; variable
96 kr = mach_port_construct(mach_task_self(), &opts, 0, &mp);
102 kr = mach_port_move_member(mach_task_self(), mp, pset);
111 send(mp);
113 fill_kevent(&ke[0], EV_ADD, mp);
121 receive(mp);
128 send(mp);
132 receive(mp);
141 send(mp);
[all …]
/xnu-11215/bsd/netinet/
H A Dmptcp_var.h153 mptompte(struct mppcb *mp) in mptompte() argument
155 return (struct mptses *)mp->mpp_pcbe; in mptompte()
165 mpp_try_lock(struct mppcb *mp) in mpp_try_lock() argument
167 if (!lck_mtx_try_lock(&mp->mpp_lock)) { in mpp_try_lock()
172 VERIFY(!(mp->mpp_flags & MPP_INSIDE_INPUT)); in mpp_try_lock()
179 mpp_lock(struct mppcb *mp) in mpp_lock() argument
181 lck_mtx_lock(&mp->mpp_lock); in mpp_lock()
188 mpp_unlock(struct mppcb *mp) in mpp_unlock() argument
193 lck_mtx_unlock(&mp->mpp_lock); in mpp_unlock()
197 mpp_getlock(struct mppcb *mp, int flags) in mpp_getlock() argument
[all …]
/xnu-11215/tests/workq/
H A Dworkq_83476290.c17 mach_port_t mp, rp; variable
27 kr = mach_port_construct(mach_task_self(), &opts, 0, &mp);
28 T_ASSERT_MACH_SUCCESS(kr, "create receive right %x", mp);
34 ds = dispatch_source_create(DISPATCH_SOURCE_TYPE_MACH_RECV, mp, 0, dq);
73 .msgh_remote_port = mp,
/xnu-11215/bsd/net/
H A Dradix.c642 if (*mp > *np) { in rn_lexobetter()
645 if (*mp == *np) { in rn_lexobetter()
646 for (lim = mp + *mp; mp < lim;) { in rn_lexobetter()
647 if (*mp++ > *np++) { in rn_lexobetter()
794 for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist) { in rn_addroute()
817 for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist) { in rn_addroute()
844 *mp = rn_new_radix_mask(tt, *mp); in rn_addroute()
909 for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist) { in rn_delete()
911 *mp = m->rm_mklist; in rn_delete()
1009 for (mp = &x->rn_mklist; (m = *mp);) { in rn_delete()
[all …]
/xnu-11215/bsd/netinet6/
H A Dip6_input.c1577 mbuf_ref_t m = *mp; in ip6_hopopts_input()
1599 *mp = m; in ip6_hopopts_input()
1814 if (*mp == NULL) { in ip6_savecontrol_v4()
1824 if (*mp == NULL) { in ip6_savecontrol_v4()
1834 if (*mp == NULL) { in ip6_savecontrol_v4()
1843 if (*mp == NULL) { in ip6_savecontrol_v4()
1854 if (*mp == NULL) { in ip6_savecontrol_v4()
1895 return mp; in ip6_savecontrol_v4()
1930 return mp; in ip6_savecontrol_v4()
1940 *mp = NULL; in ip6_savecontrol()
[all …]
H A Droute6.c77 route6_input(struct mbuf **mp, int *offp, int proto) in route6_input() argument
81 mbuf_ref_t m = *mp; in route6_input()
92 *mp = NULL; in route6_input()
121 *mp = m; in route6_input()

12345