Searched refs:mp (Results 1 - 25 of 148) sorted by relevance

123456

/xnu-2422.115.4/bsd/miscfs/devfs/
H A Ddevfs_vfsops.c93 static int devfs_statfs( struct mount *mp, struct vfsstatfs *sbp, vfs_context_t ctx);
94 static int devfs_vfs_getattr(mount_t mp, struct vfs_attr *fsap, vfs_context_t ctx);
150 * mp - pointer to 'mount' structure
164 devfs_mount(struct mount *mp, __unused vnode_t devvp, __unused user_addr_t data, vfs_context_t ctx) argument
172 if (mp->mnt_flag & MNT_UPDATE)
178 vfs_setlocklocal(mp);
191 devfs_mp_p->mount = mp;
196 mp->mnt_data = (qaddr_t)devfs_mp_p;
197 mp->mnt_vfsstat.f_fsid.val[0] = (int32_t)(uintptr_t)devfs_mp_p;
198 mp
228 devfs_start(__unused struct mount *mp, __unused int flags, __unused vfs_context_t ctx) argument
237 devfs_unmount( struct mount *mp, int mntflags, __unused vfs_context_t ctx) argument
267 devfs_root(struct mount *mp, struct vnode **vpp, __unused vfs_context_t ctx) argument
281 devfs_statfs( struct mount *mp, struct vfsstatfs *sbp, __unused vfs_context_t ctx) argument
308 devfs_vfs_getattr(__unused mount_t mp, struct vfs_attr *fsap, __unused vfs_context_t ctx) argument
436 devfs_sync(__unused struct mount *mp, __unused int waitfor, __unused vfs_context_t ctx) argument
443 devfs_vget(__unused struct mount *mp, __unused ino64_t ino, __unused struct vnode **vpp, __unused vfs_context_t ctx) argument
454 devfs_fhtovp(__unused struct mount *mp, __unused int fhlen, __unused unsigned char *fhp, __unused struct vnode **vpp, __unused vfs_context_t ctx) argument
484 struct mount *mp; local
[all...]
H A Dfdesc.h97 #define VFSTOFDESC(mp) ((struct fdescmount *)((mp)->mnt_data))
H A Ddevfs_proto.h49 int devfs_mount(struct mount *mp, vnode_t devvp, user_addr_t data,
/xnu-2422.115.4/EXTERNAL_HEADERS/architecture/i386/
H A Dcpu.h45 mp :1, member in struct:_cr0
/xnu-2422.115.4/bsd/vfs/
H A Dvfs_init.c309 struct mount * mp; local
442 MALLOC_ZONE(mp, struct mount *, sizeof(struct mount),
444 bzero((char *)mp, sizeof(struct mount));
446 mp->mnt_maxreadcnt = mp->mnt_maxwritecnt = MAXPHYS;
447 mp->mnt_segreadcnt = mp->mnt_segwritecnt = 32;
448 mp->mnt_maxsegreadsize = mp->mnt_maxreadcnt;
449 mp
467 mac_mount_label_associate(vfs_context_kernel(), mp); local
497 mount_lock_init(mount_t mp) argument
505 mount_lock_destroy(mount_t mp) argument
[all...]
H A Dvfs_subr.c207 static void insmntque(vnode_t vp, mount_t mp);
498 vnode_iterate_setup(mount_t mp) argument
500 while (mp->mnt_lflag & MNT_LITER) {
501 mp->mnt_lflag |= MNT_LITERWAIT;
502 msleep((caddr_t)mp, &mp->mnt_mlock, PVFS, "vnode_iterate_setup", NULL);
505 mp->mnt_lflag |= MNT_LITER;
510 vnode_umount_preflight(mount_t mp, vnode_t skipvp, int flags) argument
514 TAILQ_FOREACH(vp, &mp->mnt_vnodelist, v_mntvnodes) {
544 vnode_iterate_prepare(mount_t mp) argument
569 vnode_iterate_reloadq(mount_t mp) argument
609 vnode_iterate_clear(mount_t mp) argument
620 vnode_iterate(mount_t mp, int flags, int (*callout)(struct vnode *, void *), void *arg) argument
700 mount_lock_renames(mount_t mp) argument
706 mount_unlock_renames(mount_t mp) argument
712 mount_lock(mount_t mp) argument
718 mount_lock_spin(mount_t mp) argument
724 mount_unlock(mount_t mp) argument
731 mount_ref(mount_t mp, int locked) argument
744 mount_drop(mount_t mp, int locked) argument
760 mount_iterref(mount_t mp, int locked) argument
777 mount_isdrained(mount_t mp, int locked) argument
793 mount_iterdrop(mount_t mp) argument
802 mount_iterdrain(mount_t mp) argument
812 mount_iterreset(mount_t mp) argument
822 mount_refdrain(mount_t mp) argument
841 mount_set_noreaddirext(mount_t mp) argument
852 vfs_busy(mount_t mp, int flags) argument
901 vfs_unbusy(mount_t mp) argument
909 vfs_rootmountfailed(mount_t mp) argument
935 mount_t mp; local
980 mac_mount_label_associate(vfs_context_kernel(), mp); local
1024 mount_t mp; local
1180 mount_t mp; local
1203 vfs_getnewfsid(struct mount *mp) argument
1247 insmntque(vnode_t vp, mount_t mp) argument
1908 vflush(struct mount *mp, struct vnode *skipvp, int flags) argument
2886 struct mount *mp; local
2942 vfs_init_io_attributes(vnode_t devvp, mount_t mp) argument
3155 struct mount *mp = vfs_getvfs(fsid); local
3198 struct mount *mp; local
3224 struct mount *mp; local
3297 struct mount *mp; local
4721 mount_t mp; local
4802 vfs_update_vfsstat(mount_t mp, vfs_context_t ctx, __unused int eventtype) argument
4884 mount_list_add(mount_t mp) argument
4902 mount_list_remove(mount_t mp) argument
4916 mount_t mp; local
4950 mount_t mp; local
6522 mount_t mp; local
7813 vfs_setlocklocal(mount_t mp) argument
7827 vfs_setunmountpreflight(mount_t mp) argument
7835 vfs_setcompoundopen(mount_t mp) argument
8252 vnode_resolver_create(mount_t mp, vnode_t vp, struct vnode_trigger_param *tinfo, boolean_t external) argument
8316 mount_t mp; local
8511 triggerisdescendant(mount_t mp, mount_t rmp) argument
8553 trigger_unmount_callback(mount_t mp, void * arg) argument
8640 vfs_nested_trigger_unmounts(mount_t mp, int flags, vfs_context_t ctx) argument
8690 vfs_addtrigger(mount_t mp, const char *relpath, struct vnode_trigger_info *vtip, vfs_context_t ctx) argument
[all...]
H A Dkpi_vfs.c175 VFS_MOUNT(mount_t mp, vnode_t devvp, user_addr_t data, vfs_context_t ctx) argument
179 if ((mp == dead_mountp) || (mp->mnt_op->vfs_mount == 0))
183 if (vfs_64bitready(mp)) {
184 error = (*mp->mnt_op->vfs_mount)(mp, devvp, data, ctx);
191 error = (*mp->mnt_op->vfs_mount)(mp, devvp, data, ctx);
198 VFS_START(mount_t mp, int flags, vfs_context_t ctx) argument
202 if ((mp
211 VFS_UNMOUNT(mount_t mp, int flags, vfs_context_t ctx) argument
241 VFS_ROOT(mount_t mp, struct vnode ** vpp, vfs_context_t ctx) argument
258 VFS_QUOTACTL(mount_t mp, int cmd, uid_t uid, caddr_t datap, vfs_context_t ctx) argument
271 VFS_GETATTR(mount_t mp, struct vfs_attr *vfa, vfs_context_t ctx) argument
288 VFS_SETATTR(mount_t mp, struct vfs_attr *vfa, vfs_context_t ctx) argument
305 VFS_SYNC(mount_t mp, int flags, vfs_context_t ctx) argument
322 VFS_VGET(mount_t mp, ino64_t ino, struct vnode **vpp, vfs_context_t ctx) argument
339 VFS_FHTOVP(mount_t mp, int fhlen, unsigned char * fhp, vnode_t * vpp, vfs_context_t ctx) argument
375 vfs_throttle_mask(mount_t mp) argument
382 vfs_name(mount_t mp, char * buffer) argument
389 vfs_typenum(mount_t mp) argument
396 vfs_mntlabel(mount_t mp) argument
403 vfs_flags(mount_t mp) argument
410 vfs_setflags(mount_t mp, uint64_t flags) argument
432 vfs_iswriteupgrade(mount_t mp) argument
440 vfs_isrdonly(mount_t mp) argument
447 vfs_issynchronous(mount_t mp) argument
454 vfs_isrdwr(mount_t mp) argument
462 vfs_isupdate(mount_t mp) argument
470 vfs_isreload(mount_t mp) argument
477 vfs_isforce(mount_t mp) argument
486 vfs_isunmount(mount_t mp) argument
496 vfs_64bitready(mount_t mp) argument
506 vfs_authcache_ttl(mount_t mp) argument
515 vfs_setauthcache_ttl(mount_t mp, int ttl) argument
524 vfs_clearauthcache_ttl(mount_t mp) argument
537 vfs_authopaque(mount_t mp) argument
546 vfs_authopaqueaccess(mount_t mp) argument
555 vfs_setauthopaque(mount_t mp) argument
563 vfs_setauthopaqueaccess(mount_t mp) argument
571 vfs_clearauthopaque(mount_t mp) argument
579 vfs_clearauthopaqueaccess(mount_t mp) argument
587 vfs_setextendedsecurity(mount_t mp) argument
595 vfs_clearextendedsecurity(mount_t mp) argument
603 vfs_extendedsecurity(mount_t mp) argument
610 vfs_maxsymlen(mount_t mp) argument
617 vfs_setmaxsymlen(mount_t mp, uint32_t symlen) argument
624 vfs_statfs(mount_t mp) argument
630 vfs_getattr(mount_t mp, struct vfs_attr *vfa, vfs_context_t ctx) argument
649 vfs_setattr(mount_t mp, struct vfs_attr *vfa, vfs_context_t ctx) argument
668 vfs_fsprivate(mount_t mp) argument
675 vfs_setfsprivate(mount_t mp, void *mntdata) argument
684 vfs_nativexattrs(mount_t mp) argument
693 vfs_devblocksize(mount_t mp) argument
702 vfs_vnodecovered(mount_t mp) argument
722 vfs_devvp(mount_t mp) argument
737 vfs_ioattr(mount_t mp, struct vfsioattr *ioattrp) argument
767 vfs_setioattr(mount_t mp, struct vfsioattr * ioattrp) argument
1377 mount_t mp; local
2685 mount_t mp; local
[all...]
H A Dvfs_syscalls.c146 void enablequotas(struct mount *mp, vfs_context_t ctx);
147 static int getfsstat_callback(mount_t mp, void * arg);
151 static int munge_statfs(struct mount *mp, struct vfsstatfs *sfsp,
154 static int statfs64_common(struct mount *mp, struct vfsstatfs *sfsp,
166 static int authorize_devpath_and_update_mntfromname(mount_t mp, user_addr_t devpath, vnode_t *devvpp, vfs_context_t ctx);
167 static int place_mount_and_checkdirs(mount_t mp, vnode_t vp, vfs_context_t ctx);
168 static void undo_place_on_covered_vp(mount_t mp, vnode_t vp);
169 static int mount_begin_update(mount_t mp, vfs_context_t ctx, int flags);
170 static void mount_end_update(mount_t mp);
207 vfs_iskernelmount(mount_t mp) argument
473 struct mount *mp; local
1135 authorize_devpath_and_update_mntfromname(mount_t mp, user_addr_t devpath, vnode_t *devvpp, vfs_context_t ctx) argument
1209 place_mount_and_checkdirs(mount_t mp, vnode_t vp, vfs_context_t ctx) argument
1252 undo_place_on_covered_vp(mount_t mp, vnode_t vp) argument
1263 mount_begin_update(mount_t mp, vfs_context_t ctx, int flags) argument
1311 mount_end_update(mount_t mp) argument
1340 mount_t mp; local
1555 enablequotas(struct mount *mp, vfs_context_t ctx) argument
1698 struct mount *mp; local
1735 mount_t mp; local
1753 safedounmount(struct mount *mp, int flags, vfs_context_t ctx) argument
1807 dounmount(struct mount *mp, int flags, int withref, vfs_context_t ctx) argument
2041 mount_dropcrossref(mount_t mp, vnode_t dp, int need_put) argument
2079 sync_callback(mount_t mp, void * arg) argument
2132 struct mount *mp; local
2243 struct mount *mp; local
2279 struct mount *mp; local
2319 statfs64_common(struct mount *mp, struct vfsstatfs *sfsp, user_addr_t bufp) argument
2357 struct mount *mp; local
2393 struct mount *mp; local
2431 user_addr_t *mp; member in struct:getfsstat_struct
2440 getfsstat_callback(mount_t mp, void * arg) argument
2525 user_addr_t *mp; local
2609 getfsstat64_callback(mount_t mp, void * arg) argument
2690 struct mount *mp; local
6418 struct mount *mp; local
8654 mount_t mp = vp->v_mount; local
9466 struct mount *mp = NULL; local
9568 munge_statfs(struct mount *mp, struct vfsstatfs *sfsp, user_addr_t bufp, int *sizep, boolean_t is_64_bit, boolean_t partial_copy) argument
9856 vfs_purge_callback(mount_t mp, __unused void * arg) argument
[all...]
/xnu-2422.115.4/bsd/miscfs/mockfs/
H A Dmockfs_vfsops.c46 int mockfs_mountroot(mount_t mp, vnode_t rvp, __unused vfs_context_t ctx);
51 int mockfs_unmount(__unused struct mount *mp, __unused int mntflags, __unused vfs_context_t ctx);
52 int mockfs_root(mount_t mp, vnode_t * vpp, __unused vfs_context_t ctx);
53 int mockfs_sync(__unused struct mount *mp, __unused int waitfor, __unused vfs_context_t ctx);
58 * Given a mount (mp) and a vnode for the root device (rvp), builds a fake filesystem for rvp. This consists
66 int mockfs_mountroot(mount_t mp, vnode_t rvp, __unused vfs_context_t ctx) argument
85 mockfs_fsnode_create(mp, MOCKFS_ROOT, &root_fsnode);
86 mockfs_fsnode_create(mp, MOCKFS_DEV, &dev_fsnode);
87 mockfs_fsnode_create(mp, MOCKFS_FILE, &file_fsnode);
126 mp
151 mockfs_unmount(struct mount *mp, int mntflags, __unused vfs_context_t ctx) argument
200 mockfs_root(mount_t mp, vnode_t * vpp, __unused vfs_context_t ctx) argument
214 mockfs_sync(__unused struct mount *mp, __unused int waitfor, __unused vfs_context_t ctx) argument
[all...]
H A Dmockfs_fsnode.h76 int mockfs_fsnode_create(mount_t mp, uint8_t type, mockfs_fsnode_t * fsnpp);
/xnu-2422.115.4/osfmk/kperf/x86_64/
H A Dkperf_mp.c30 #include <i386/mp.h>
/xnu-2422.115.4/SETUP/config/
H A Dmkioconf.c75 register struct device *dp, *mp, *np; local
105 mp = dp->d_conn;
106 if (mp == 0 || mp == TO_NEXUS ||
107 !eq(mp->d_name, "mba"))
115 mp = dp->d_conn;
116 if (dp->d_unit == QUES || mp == 0 ||
117 mp == TO_NEXUS || !eq(mp->d_name, "mba"))
140 dp->d_name, dp->d_unit, qu(mp
345 register struct device *dp, *mp; local
579 register struct device *dp, *mp; local
740 register struct device *dp, *dp1, *mp; local
1021 register struct device *dp, *mp; local
1241 register struct device *dp, *mp, *np; local
1525 register struct device *dp, *mp; local
[all...]
H A Dmkglue.c77 register struct device *dp, *mp; local
90 mp = dp->d_conn;
91 if (mp != 0 && mp != (struct device *)-1 &&
92 !eq(mp->d_name, "mba")) {
110 mp = dp->d_conn;
111 if (mp != 0 && mp != (struct device *)-1 &&
112 !eq(mp->d_name, "mba")) {
310 register struct device *dp, *mp; local
[all...]
H A Dmkheaders.c88 struct device *dp, *mp; local
121 mp = dp->d_conn;
122 if (mp != 0 && mp != TO_NEXUS &&
123 mp->d_conn != TO_NEXUS) {
133 if (!file_needed(mp->d_name))
134 do_count(mp->d_name, hname, 0);
/xnu-2422.115.4/bsd/security/audit/
H A Daudit_bsd.h227 void _audit_cv_wait(struct cv *cvp, lck_mtx_t *mp, const char *desc);
228 int _audit_cv_wait_sig(struct cv *cvp, lck_mtx_t *mp, const char *desc);
229 int _audit_cv_wait_continuation(struct cv *cvp, lck_mtx_t *mp,
236 #define cv_wait(cvp, mp) _audit_cv_wait(cvp, (mp)->mtx_lock, #cvp)
237 #define cv_wait_sig(cvp, mp) _audit_cv_wait_sig(cvp, (mp)->mtx_lock, #cvp)
238 #define cv_wait_continuation(cvp,mp,f) \
239 _audit_cv_wait_continuation(cvp, (mp)->mtx_lock, f)
244 void _audit_mtx_init(struct mtx *mp, cons
[all...]
H A Daudit_bsd.c299 _audit_cv_wait(struct cv *cvp, lck_mtx_t *mp, const char *desc) argument
303 (void) msleep(cvp, mp, PZERO, desc, 0);
313 _audit_cv_wait_sig(struct cv *cvp, lck_mtx_t *mp, const char *desc) argument
317 return (msleep(cvp, mp, PSOCK | PCATCH, desc, 0));
325 _audit_mtx_init(struct mtx *mp, const char *lckname) argument
327 _audit_mtx_init(struct mtx *mp, __unused const char *lckname)
330 mp->mtx_lock = lck_mtx_alloc_init(audit_lck_grp, LCK_ATTR_NULL);
331 KASSERT(mp->mtx_lock != NULL,
334 strlcpy(mp->mtx_name, lckname, AU_MAX_LCK_NAME);
339 _audit_mtx_destroy(struct mtx *mp) argument
381 _audit_cv_wait_continuation(struct cv *cvp, lck_mtx_t *mp, thread_continue_t function) argument
[all...]
/xnu-2422.115.4/security/
H A Dmac_vfs.c121 mac_mount_label_init(struct mount *mp) argument
124 mp->mnt_mntlabel = mac_mount_label_alloc();
188 mac_mount_label_destroy(struct mount *mp) argument
190 if (mp->mnt_mntlabel != NULL) {
191 mac_mount_label_free(mp->mnt_mntlabel);
192 mp->mnt_mntlabel = NULL;
288 mac_devfs_label_update(struct mount *mp, struct devnode *de, argument
295 MAC_PERFORM(devfs_label_update, mp, de, de->dn_label, vp,
300 mac_vnode_label_associate(struct mount *mp, struct vnode *vp, vfs_context_t ctx) argument
313 mac_vnode_label_associate_devfs(mp, dn
328 mac_vnode_label_associate_devfs(struct mount *mp, struct devnode *de, struct vnode *vp) argument
341 mac_vnode_label_associate_extattr(struct mount *mp, struct vnode *vp) argument
352 mac_vnode_label_associate_singlelabel(struct mount *mp, struct vnode *vp) argument
363 mac_vnode_notify_create(vfs_context_t ctx, struct mount *mp, struct vnode *dvp, struct vnode *vp, struct componentname *cnp) argument
428 mac_vnode_label_update_extattr(struct mount *mp, struct vnode *vp, const char *name) argument
1359 mac_mount_label_associate(vfs_context_t ctx, struct mount *mp) argument
1425 mac_mount_check_remount(vfs_context_t ctx, struct mount *mp) argument
1441 mac_mount_check_umount(vfs_context_t ctx, struct mount *mp) argument
1457 mac_mount_check_getattr(vfs_context_t ctx, struct mount *mp, struct vfs_attr *vfa) argument
1473 mac_mount_check_setattr(vfs_context_t ctx, struct mount *mp, struct vfs_attr *vfa) argument
1521 mac_mount_check_fsctl(vfs_context_t ctx, struct mount *mp, u_int cmd) argument
1606 mac_vnode_label_associate_fdesc(struct mount *mp, struct fdescnode *fnp, struct vnode *vp, vfs_context_t ctx) argument
[all...]
H A Dmac_vfs_subr.c45 vnode_label(struct mount *mp, struct vnode *dvp, struct vnode *vp, argument
57 mp, dvp, vp, cnp);
88 mp, dvp, vp, cnp);
90 error = mac_vnode_label_associate(mp, vp, ctx);
/xnu-2422.115.4/bsd/net/
H A Dppp_comp.h90 PACKETPTR mp, int orig_len, int max_len);
104 int (*decompress)(void *state, PACKETPTR mp, PACKETPTR *dmpp);
106 void (*incomp)(void *state, PACKETPTR mp);
H A Dradix.c557 u_char *mp = m_arg, *np = n_arg, *lim; local
559 if (*mp > *np)
561 if (*mp == *np)
562 for (lim = mp + *mp; mp < lim;)
563 if (*mp++ > *np++)
600 struct radix_mask *m, **mp; local
687 for (mp = &t->rn_mklist; x; x = x->rn_dupedkey)
689 *mp
748 struct radix_mask *m, *saved_m, **mp; local
[all...]
/xnu-2422.115.4/bsd/sys/
H A Dmount.h534 @param mp Mount structure for the newly mounted filesystem.
541 int (*vfs_mount)(struct mount *mp, vnode_t devvp, user_addr_t data, vfs_context_t context);
548 @param mp Mount structure being activated.
553 int (*vfs_start)(struct mount *mp, int flags, vfs_context_t context);
560 @param mp Mount structure to unmount.
565 int (*vfs_unmount)(struct mount *mp, int mntflags, vfs_context_t context);
572 @param mp Mount for which to get the root.
577 int (*vfs_root)(struct mount *mp, struct vnode **vpp, vfs_context_t context);
582 @param mp Mount for which to manipulate quotas.
589 int (*vfs_quotactl)(struct mount *mp, in
[all...]
H A Dsystm.h189 void throttle_info_get_last_io_time(mount_t mp, struct timeval *tv);
190 void update_last_io_time(mount_t mp);
227 void throttle_info_mount_ref(mount_t mp, void * throttle_info);
228 void throttle_info_mount_rel(mount_t mp);
/xnu-2422.115.4/bsd/hfs/
H A Dhfs_notification.c88 struct mount *mp = vnode_mount (hfsmp->hfs_backingfs_rootvp); local
90 if (mp) {
91 printf("hfs: set VeryLowDisk: vol:%s, backingstore b_avail:%lld, tag:%d\n", hfsmp->vcbVN, mp->mnt_vfsstat.f_bavail, hfsmp->hfs_backingfs_rootvp->v_tag);
H A Dhfs_quota.c545 hfs_quotaon(p, mp, type, fnamep)
547 struct mount *mp;
551 struct hfsmount *hfsmp = VFSTOHFS(mp);
574 vfs_setflags(mp, (u_int64_t)((unsigned int)MNT_QUOTA));
610 vnode_iterate(mp, VNODE_WRITEABLE | VNODE_WAIT, hfs_quotaon_callback, (void *)&args);
615 hfs_quotaoff(p, mp, type);
653 hfs_quotaoff(__unused struct proc *p, struct mount *mp, register int type) argument
656 struct hfsmount *hfsmp = VFSTOHFS(mp);
689 vnode_iterate(mp, VNODE_WAIT, hfs_quotaoff_callback, (void *)&args);
706 vfs_clearflags(mp, (u_int64_
[all...]
/xnu-2422.115.4/bsd/netinet6/
H A Ddest6.c57 dest6_input(struct mbuf **mp, int *offp, int proto) argument
60 struct mbuf *m = *mp;

Completed in 188 milliseconds

123456