/freebsd/tools/test/stress2/misc/ |
H A D | nullfs18.sh | 62 eval mp$i=${mntpoint}$i 66 eval mp=\$mp$i 67 [ -d $mp ] || mkdir -p $mp 68 mount | grep $mp | grep -q nullfs && umount -f $mp 73 chmod 777 $mp 80 mps="$mps $mp" 106 eval mp=\$mp$i 107 echo "umount $mp" 108 mount | grep $mp | grep -q nullfs && umount $mp 115 eval mp=\$mp$i [all …]
|
H A D | tmpfs12.sh | 66 eval mp$i=${mntpoint}$i 70 eval mp=\$mp$i 71 [ -d $mp ] || mkdir -p $mp 72 mount | grep $mp | grep -q tmpfs && umount -f $mp 73 mount -o size=2g -t tmpfs tmpfs $mp 74 chmod 777 $mp 75 export RUNDIR=$mp/stressX 76 export CTRLDIR=$mp/stressX.control 86 eval mp=\$mp$i 87 while mount | grep "$mp " | grep -q tmpfs; do [all …]
|
H A D | tmpfs13.sh | 68 eval mp$i=${mntpoint}$i 72 eval mp=\$mp$i 73 [ -d $mp ] || mkdir -p $mp 74 mount | grep $mp | grep -q tmpfs && umount -f $mp 75 mount -o size=${size}m -t tmpfs tmpfs $mp 76 chmod 777 $mp 77 export RUNDIR=$mp/stressX 78 export CTRLDIR=$mp/stressX.control 86 eval mp=\$mp$i 87 while mount | grep "$mp " | grep -q tmpfs; do [all …]
|
H A D | nullfs19.sh | 60 eval mp$i=${mntpoint}$i 64 eval mp=\$mp$i 65 [ -d $mp ] || mkdir -p $mp 66 mount | grep $mp | grep -q nullfs && umount -f $mp 70 mount -t nullfs $msrc $mp 71 chmod 777 $mp 72 export RUNDIR=$mp/stressX 73 export CTRLDIR=$mp/stressX.control 82 eval mp=\$mp$i 83 mount | grep $mp | grep -q nullfs && umount $mp
|
/freebsd/usr.bin/rwho/ |
H A D | rwho.c | 83 struct myutmp *mp; in main() local 115 mp = myutmp; in main() 160 mp++; in main() 165 mp = myutmp; in main() 171 j = strlen(mp->myhost) + 1 + sizeof(mp->myutmp.out_line); in main() 174 mp++; in main() 176 mp = myutmp; in main() 185 (int)sizeof(mp->myutmp.out_line), mp->myutmp.out_line); in main() 190 mp->myidle /= 60; in main() 191 if (mp->myidle != 0) { in main() [all …]
|
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | condvar.h | 100 #define cv_wait(cvp, mp) __cv_wait(cvp, mp) argument 101 #define cv_wait_io(cvp, mp) __cv_wait_io(cvp, mp) argument 102 #define cv_wait_idle(cvp, mp) __cv_wait_idle(cvp, mp) argument 103 #define cv_wait_io_sig(cvp, mp) __cv_wait_io_sig(cvp, mp) argument 104 #define cv_wait_sig(cvp, mp) __cv_wait_sig(cvp, mp) argument 113 #define cv_timedwait(cvp, mp, t) __cv_timedwait(cvp, mp, t) argument 114 #define cv_timedwait_io(cvp, mp, t) __cv_timedwait_io(cvp, mp, t) argument 115 #define cv_timedwait_sig(cvp, mp, t) __cv_timedwait_sig(cvp, mp, t) argument 116 #define cv_timedwait_idle(cvp, mp, t) __cv_timedwait_idle(cvp, mp, t) argument
|
/freebsd/sys/fs/autofs/ |
H A D | autofs_vfsops.c | 56 autofs_mount(struct mount *mp) in autofs_mount() argument 66 autofs_flush(VFSTOAUTOFS(mp)); in autofs_mount() 83 mp->mnt_data = amp; in autofs_mount() 84 amp->am_mp = mp; in autofs_mount() 92 vfs_getnewfsid(mp); in autofs_mount() 94 MNT_ILOCK(mp); in autofs_mount() 96 MNT_IUNLOCK(mp); in autofs_mount() 107 vfs_mountedfrom(mp, from); in autofs_mount() 121 amp = VFSTOAUTOFS(mp); in autofs_unmount() 169 mp->mnt_data = NULL; in autofs_unmount() [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/nothreads/include/isc/ |
H A D | mutex.h | 27 #define isc_mutex_init(mp) \ argument 28 (*(mp) = 0, ISC_R_SUCCESS) 29 #define isc_mutex_lock(mp) \ argument 30 ((*(mp))++ == 0 ? ISC_R_SUCCESS : ISC_R_UNEXPECTED) 31 #define isc_mutex_unlock(mp) \ argument 32 (--(*(mp)) == 0 ? ISC_R_SUCCESS : ISC_R_UNEXPECTED) 33 #define isc_mutex_trylock(mp) \ argument 34 (*(mp) == 0 ? ((*(mp))++, ISC_R_SUCCESS) : ISC_R_LOCKBUSY) 35 #define isc_mutex_destroy(mp) \ argument 36 (*(mp) == 0 ? (*(mp) = -1, ISC_R_SUCCESS) : ISC_R_UNEXPECTED)
|
/freebsd/usr.bin/mail/ |
H A D | list.c | 52 struct message *mp; in getmsglist() local 61 for (mp = &message[0]; mp < &message[msgCount]; mp++) in getmsglist() 110 struct message *mp; in markall() local 314 for (mp = &message[0]; mp < &message[msgCount]; mp++) in markall() 356 struct message *mp; in check() local 626 struct message *mp; in first() local 632 for (mp = dot; mp < &message[msgCount]; mp++) in first() 635 for (mp = dot-1; mp >= &message[0]; mp--) in first() 668 struct message *mp; in matchto() local 779 for (mp = &message[0]; mp < &message[msgCount]; mp++) in metamess() [all …]
|
H A D | cmd2.c | 52 struct message *mp; in next() local 80 dot = mp; in next() 105 for (mp = dot+1; mp < &message[msgCount]; mp++) in next() 112 dot = mp; in next() 153 struct message *mp; in save1() local 186 touch(mp); in save1() 301 struct message *mp; in delm() local 307 touch(mp); in delm() 340 struct message *mp; in undeletecmd() local 344 touch(mp); in undeletecmd() [all …]
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_vfsops.c | 117 vfs_ref(mp); in ufs_quotactl() 120 vn_start_write(NULL, &mp, V_WAIT); in ufs_quotactl() 121 vfs_unbusy(mp); in ufs_quotactl() 123 error = quotaoff(td, mp, type); in ufs_quotactl() 124 vn_finished_write(mp); in ufs_quotactl() 125 vfs_rel(mp); in ufs_quotactl() 133 error = setuse32(td, mp, id, type, arg); in ufs_quotactl() 141 error = setquota(td, mp, id, type, arg); in ufs_quotactl() 145 error = setuse(td, mp, id, type, arg); in ufs_quotactl() 149 error = getquota(td, mp, id, type, arg); in ufs_quotactl() [all …]
|
/freebsd/sys/sys/ |
H A D | mount.h | 312 #define MNT_ILOCK(mp) mtx_lock(&(mp)->mnt_mtx) argument 313 #define MNT_ITRYLOCK(mp) mtx_trylock(&(mp)->mnt_mtx) argument 314 #define MNT_IUNLOCK(mp) mtx_unlock(&(mp)->mnt_mtx) argument 315 #define MNT_MTX(mp) (&(mp)->mnt_mtx) argument 324 if ((mp)->mnt_vfs_ops && (mp)->mnt_ref < 0) \ 326 if ((mp)->mnt_ref == 0 && (mp)->mnt_vfs_ops) \ 327 wakeup((mp)); \ 525 return (mp != NULL && (mp->mnt_kern_flag & MNTK_SHARED_WRITES) != 0); in MNT_SHARED_WRITES() 532 return (mp != NULL && (mp->mnt_kern_flag & MNTK_EXTENDED_SHARED) != 0); in MNT_EXTENDED_SHARED() 1129 #define vfs_mount_pcpu(mp) zpcpu_get(mp->mnt_pcpu) argument [all …]
|
H A D | mutex.h | 270 if (((mp)->mtx_lock != MTX_UNOWNED || !_mtx_obtain_lock((mp), _tid))) {\ 275 mp, 0, 0, file, line); \ 285 if ((mp)->mtx_lock == _tid) \ 286 (mp)->mtx_recurse++; \ 289 (mp)->mtx_lock = _tid; \ 302 (mp)->mtx_lock = _tid; \ 331 if (mtx_recursed((mp))) \ 332 (mp)->mtx_recurse--; \ 341 if (mtx_recursed((mp))) \ 342 (mp)->mtx_recurse--; \ [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | fmd_api.c | 104 mp->mod_info = mip; in fmd_hdl_register() 106 mp->mod_spec = NULL; in fmd_hdl_register() 114 fmd_serd_hash_create(&mp->mod_serds); in fmd_hdl_register() 125 fmd_modstat_t *msp = &mp->mod_stats; in fmd_hdl_unregister() 141 if (mp->mod_ustat != NULL) { in fmd_hdl_unregister() 146 mp->mod_ustat[i].fmds_name, in fmd_hdl_unregister() 166 mp->mod_spec = spec; in fmd_hdl_setspecific() 178 return (mp->mod_spec); in fmd_hdl_getspecific() 246 mp->mod_ustat = statv; in fmd_stat_create() 247 mp->mod_ustat_cnt = nstats; in fmd_stat_create() [all …]
|
/freebsd/sys/fs/smbfs/ |
H A D | smbfs_vfsops.c | 130 smbfs_mount(struct mount *mp) in smbfs_mount() argument 173 mp->mnt_data = smp; in smbfs_mount() 177 if (1 != vfs_scanopt(mp->mnt_optnew, in smbfs_mount() 184 vfs_mount_error(mp, "Invalid uid"); in smbfs_mount() 191 vfs_mount_error(mp, "Invalid gid"); in smbfs_mount() 211 vfs_flagopt(mp->mnt_optnew, in smbfs_mount() 214 pc = mp->mnt_stat.f_mntfromname; in smbfs_mount() 228 vfs_getnewfsid(mp); in smbfs_mount() 238 SMBERROR("mp=%p\n", mp); in smbfs_mount() 282 error = vflush(mp, 1, flags, td); in smbfs_unmount() [all …]
|
/freebsd/sys/fs/fdescfs/ |
H A D | fdesc_vfsops.c | 77 fdesc_mount(struct mount *mp) in fdesc_mount() argument 95 mp->mnt_data = fmp; in fdesc_mount() 106 mp->mnt_data = NULL; in fdesc_mount() 115 MNT_ILOCK(mp); in fdesc_mount() 124 MNT_IUNLOCK(mp); in fdesc_mount() 126 vfs_getnewfsid(mp); in fdesc_mount() 128 vfs_mountedfrom(mp, "fdescfs"); in fdesc_mount() 139 fmp = mp->mnt_data; in fdesc_unmount() 162 mp->mnt_data = NULL; in fdesc_unmount() 175 vp = VFSTOFDESC(mp)->f_root; in fdesc_root() [all …]
|
/freebsd/sys/fs/msdosfs/ |
H A D | msdosfs_vfsops.c | 296 MNT_ILOCK(mp); in msdosfs_mount() 298 MNT_IUNLOCK(mp); in msdosfs_mount() 339 MNT_ILOCK(mp); in msdosfs_mount() 341 MNT_IUNLOCK(mp); in msdosfs_mount() 573 pmp->pm_mountp = mp; in mountmsdosfs() 852 mp->mnt_data = pmp; in mountmsdosfs() 854 mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum; in mountmsdosfs() 855 MNT_ILOCK(mp); in mountmsdosfs() 858 MNT_IUNLOCK(mp); in mountmsdosfs() 1170 MNT_ILOCK(mp); in msdosfs_sync() [all …]
|
/freebsd/sys/fs/cd9660/ |
H A D | cd9660_vfsops.c | 145 MNT_ILOCK(mp); in cd9660_mount() 147 MNT_IUNLOCK(mp); in cd9660_mount() 153 imp = VFSTOISOFS(mp); in cd9660_mount() 385 mp->mnt_data = isomp; in iso_mountfs() 387 mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum; in iso_mountfs() 388 MNT_ILOCK(mp); in iso_mountfs() 393 MNT_IUNLOCK(mp); in iso_mountfs() 394 isomp->im_mountp = mp; in iso_mountfs() 516 mp->mnt_data = NULL; in iso_mountfs() 550 mp->mnt_data = NULL; in cd9660_unmount() [all …]
|
/freebsd/usr.bin/showmount/ |
H A D | showmount.c | 273 if (mp == NULL) in xdr_mntdump() 275 mp->ml_left = mp->ml_right = (struct mountlist *)0; in xdr_mntdump() 276 strp = mp->ml_host; in xdr_mntdump() 278 free(mp); in xdr_mntdump() 283 free(mp); in xdr_mntdump() 292 *mlp = mp; in xdr_mntdump() 330 *otp = mp; in xdr_mntdump() 397 if (mp == NULL) in print_dump() 399 if (mp->ml_left) in print_dump() 403 printf("%s:%s\n", mp->ml_host, mp->ml_dirp); in print_dump() [all …]
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clvfsops.c | 314 vfs_unbusy(mp); in nfs_statfs() 326 vfs_unbusy(mp); in nfs_statfs() 350 vfs_unbusy(mp); in nfs_statfs() 391 vfs_unbusy(mp); in nfs_statfs() 615 MNT_ILOCK(mp); in nfs_decode_args() 617 MNT_IUNLOCK(mp); in nfs_decode_args() 619 MNT_ILOCK(mp); in nfs_decode_args() 621 MNT_IUNLOCK(mp); in nfs_decode_args() 1465 MNT_ILOCK(mp); in nfs_mount() 1805 MNT_ILOCK(mp); in mountnfs() [all …]
|
/freebsd/contrib/ntp/libparse/ |
H A D | parsesolaris.c | 293 if (mp) in setup_stream() 305 putnext(q, mp); in setup_stream() 446 mblk_t *mp; in parsersvc() local 457 putbq(q, mp); in parsersvc() 473 mblk_t *mp in parsewput() argument 486 putnext(q, mp); in parsewput() 520 qreply(q, mp); in parsewput() 579 qreply(q, mp); in parsewput() 596 if ((*mp)->b_wptr - (*mp)->b_rptr) in rdchar() 604 *mp = (*mp)->b_cont; in rdchar() [all …]
|
/freebsd/sys/kern/ |
H A D | vfs_subr.c | 860 MNT_REF(mp); in vfs_busy() 886 msleep(mp, MNT_MTX(mp), PVFS | PDROP, "vfs_busy", 0); in vfs_busy() 919 MNT_REL(mp); in vfs_unbusy() 990 return (mp); in vfs_busyfs() 2106 if (mp != NULL && (mp->mnt_flag & MNT_MULTILABEL) == 0) in getnewvnode() 2228 MNT_REL(mp); in delmntque() 2277 MNT_REF(mp); in insmntque1_int() 2965 (mp->mnt_kern_flag & MNTK_SUSPENDED) == 0, mp, in sync_vnode() 4404 mp = NULL; in vgonel() 6507 vfs_rel(mp); in sysctl_vfs_ctl() [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/win32/include/isc/ |
H A D | mutex.h | 39 #define isc_mutex_init(mp) \ argument 40 (InitializeCriticalSection((mp)), ISC_R_SUCCESS) 41 #define isc_mutex_lock(mp) \ argument 42 (EnterCriticalSection((mp)), ISC_R_SUCCESS) 43 #define isc_mutex_unlock(mp) \ argument 44 (LeaveCriticalSection((mp)), ISC_R_SUCCESS) 45 #define isc_mutex_trylock(mp) \ argument 46 (TryEnterCriticalSection((mp)) ? ISC_R_SUCCESS : ISC_R_LOCKBUSY) 47 #define isc_mutex_destroy(mp) \ argument 48 (DeleteCriticalSection((mp)), ISC_R_SUCCESS)
|
/freebsd/lib/libthr/thread/ |
H A D | thr_cond.c | 253 _mutex_cv_attach(mp, recurse); in cond_wait_kernel() 264 _mutex_leave_robust(curthread, mp); in cond_wait_kernel() 298 curthread->mutex_obj = mp; in cond_wait_user() 306 (void)_umtx_op_err(&mp->m_lock, in cond_wait_user() 357 struct pthread_mutex *mp; in cond_wait_common() local 364 if (mp == NULL) in cond_wait_common() 367 mp = *mutex; in cond_wait_common() 427 struct pthread_mutex *mp; in cond_signal_common() local 455 mp = td->mutex_obj; in cond_signal_common() 485 struct pthread_mutex *mp; in drop_cb() local [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | mppe.c | 150 GetNewKeyFromSHA(mp->mastkey, mp->sesskey, mp->keylen, InterimKey); in MPPEKeyChange() 152 RC4(&RC4Key, mp->keylen, InterimKey, mp->sesskey); in MPPEKeyChange() 175 return mp; in MPPEOutput() 182 mo->m_next = mp; in MPPEOutput() 255 mp = mbuf_Read(mp, &prefix, 2); in MPPEInput() 262 m_freem(mp); in MPPEInput() 357 mp = mbuf_Read(mp, proto, 2); in MPPEInput() 371 return mp; in MPPEInput() 650 if ((mp = calloc(1, sizeof *mp)) != NULL) { in MPPE_InitState() 668 free(mp); in MPPE_InitState() [all …]
|