Lines Matching refs:mp
298 struct mount * mp;
413 MALLOC_ZONE(mp, struct mount *, (u_long)sizeof(struct mount),
415 bzero((char *)mp, (u_long)sizeof(struct mount));
417 mp->mnt_maxreadcnt = mp->mnt_maxwritecnt = MAXPHYS;
418 mp->mnt_segreadcnt = mp->mnt_segwritecnt = 32;
419 mp->mnt_maxsegreadsize = mp->mnt_maxreadcnt;
420 mp->mnt_maxsegwritesize = mp->mnt_maxwritecnt;
421 mp->mnt_devblocksize = DEV_BSIZE;
422 mp->mnt_alignmentmask = PAGE_MASK;
423 mp->mnt_ioflags = 0;
424 mp->mnt_realrootvp = NULLVP;
425 mp->mnt_authcache_ttl = CACHED_LOOKUP_RIGHT_TTL;
427 TAILQ_INIT(&mp->mnt_vnodelist);
428 TAILQ_INIT(&mp->mnt_workerqueue);
429 TAILQ_INIT(&mp->mnt_newvnodes);
430 mp->mnt_flag = MNT_LOCAL;
431 mp->mnt_lflag = MNT_LDEAD;
432 mount_lock_init(mp);
435 mac_mount_label_init(mp);
436 mac_mount_label_associate(vfs_context_kernel(), mp);
438 dead_mountp = mp;
466 mount_lock_init(mount_t mp)
468 lck_mtx_init(&mp->mnt_mlock, mnt_lck_grp, mnt_lck_attr);
469 lck_mtx_init(&mp->mnt_renamelock, mnt_lck_grp, mnt_lck_attr);
470 lck_rw_init(&mp->mnt_rwlock, mnt_lck_grp, mnt_lck_attr);
474 mount_lock_destroy(mount_t mp)
476 lck_mtx_destroy(&mp->mnt_mlock, mnt_lck_grp);
477 lck_mtx_destroy(&mp->mnt_renamelock, mnt_lck_grp);
478 lck_rw_destroy(&mp->mnt_rwlock, mnt_lck_grp);