/freebsd-current/contrib/ntp/libntp/lib/isc/nothreads/include/isc/ |
H A D | mutex.h | 27 #define isc_mutex_init(mp) \ 28 (*(mp) = 0, ISC_R_SUCCESS) 29 #define isc_mutex_lock(mp) \ 30 ((*(mp))++ == 0 ? ISC_R_SUCCESS : ISC_R_UNEXPECTED) 31 #define isc_mutex_unlock(mp) \ 32 (--(*(mp)) == 0 ? ISC_R_SUCCESS : ISC_R_UNEXPECTED) 33 #define isc_mutex_trylock(mp) \ 34 (*(mp) == 0 ? ((*(mp))++, ISC_R_SUCCESS) : ISC_R_LOCKBUSY) 35 #define isc_mutex_destroy(mp) \ [all...] |
H A D | condition.h | 38 isc_result_t isc__nothread_wait_hack(isc_condition_t *cp, isc_mutex_t *mp); 44 #define isc_condition_wait(cp, mp) \ 45 isc__nothread_wait_hack(cp, mp) 47 #define isc_condition_waituntil(cp, mp, tp) \ 48 ((void)(cp), (void)(mp), (void)(tp), ISC_R_NOTIMPLEMENTED)
|
/freebsd-current/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | mutex.h | 49 #define MUTEX(mp) (&((mp)->m_mutex)) 52 spl_mutex_set_owner(kmutex_t *mp) argument 54 mp->m_owner = current; 58 spl_mutex_clear_owner(kmutex_t *mp) argument 60 mp->m_owner = NULL; 63 #define mutex_owner(mp) (READ_ONCE((mp)->m_owner)) 64 #define mutex_owned(mp) (mutex_owner(mp) 70 spl_mutex_set_type(kmutex_t *mp, kmutex_type_t type) argument 75 spl_mutex_lockdep_off_maybe(kmutex_t *mp) argument 81 spl_mutex_lockdep_on_maybe(kmutex_t *mp) argument [all...] |
H A D | condvar.h | 100 #define cv_wait(cvp, mp) __cv_wait(cvp, mp) 101 #define cv_wait_io(cvp, mp) __cv_wait_io(cvp, mp) 102 #define cv_wait_idle(cvp, mp) __cv_wait_idle(cvp, mp) 103 #define cv_wait_io_sig(cvp, mp) __cv_wait_io_sig(cvp, mp) 104 #define cv_wait_sig(cvp, mp) __cv_wait_sig(cvp, mp) [all...] |
/freebsd-current/contrib/ntp/libntp/lib/isc/win32/include/isc/ |
H A D | mutex.h | 39 #define isc_mutex_init(mp) \ 40 (InitializeCriticalSection((mp)), ISC_R_SUCCESS) 41 #define isc_mutex_lock(mp) \ 42 (EnterCriticalSection((mp)), ISC_R_SUCCESS) 43 #define isc_mutex_unlock(mp) \ 44 (LeaveCriticalSection((mp)), ISC_R_SUCCESS) 45 #define isc_mutex_trylock(mp) \ 46 (TryEnterCriticalSection((mp)) ? ISC_R_SUCCESS : ISC_R_LOCKBUSY) 47 #define isc_mutex_destroy(mp) \ 48 (DeleteCriticalSection((mp)), ISC_R_SUCCES [all...] |
/freebsd-current/contrib/ntp/libntp/lib/isc/pthreads/include/isc/ |
H A D | mutex.h | 70 #define isc_mutex_init(mp) \ 71 isc_mutex_init_profile((mp), __FILE__, __LINE__) 74 #define isc_mutex_init(mp) \ 75 isc_mutex_init_errcheck((mp)) 77 #define isc_mutex_init(mp) \ 78 isc__mutex_init((mp), __FILE__, __LINE__) 79 isc_result_t isc__mutex_init(isc_mutex_t *mp, const char *file, unsigned int line); 84 #define isc_mutex_lock(mp) \ 85 isc_mutex_lock_profile((mp), __FILE__, __LINE__) 87 #define isc_mutex_lock(mp) \ [all...] |
/freebsd-current/tools/test/stress2/misc/ |
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/stress [all...] |
H A D | nullfs3.sh | 44 mp=$mntpoint 45 mount | grep -q $mp && umount -f $mp 47 mount -t nullfs `dirname $RUNDIR` $mp 49 cd $mp/stressX 53 umount $mp 55 mount | grep -q $mp && umount -f $mp
|
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/stress [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/stress [all...] |
H A D | trim8.sh | 35 trim=$(df -k | sed 1d | sort -rn +3 | awk '{print $NF}' | while read mp; do 36 mount | grep "on $mp " | grep -q ufs || continue 37 on=`mount | grep "on $mp " | awk '{print $1}'` 42 mp=`mount | grep "$trim " | awk '{print $3}'` 43 echo "Found TRIM on $trim mounted as $mp" 44 free=`df -k $mp | tail -1 | awk '{print $4}'` 48 before=`mount -v | grep "$mp "` 51 dd if=/dev/zero of=$mp/trim.data.$i bs=1m count=1k status=none 52 rm $mp/trim.data.$i 56 after=`mount -v | grep "$mp "` [all...] |
H A D | trim7.sh | 50 mp=$2 51 [ $mp = /media ] || exit 0 52 fs=`mount | grep "on $mp " | sed 's/ .*//'` 54 image=`echo $mp/diskimage | sed s#//#/#` # fix "//" for case mp = "/" 59 while mount | grep -q "on $mp "; do 60 umount $mp 62 mount $fs $mp
|
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 72 mount -t nullfs $msrc $mp 73 chmod 777 $mp 74 export RUNDIR=$mp/stress [all...] |
/freebsd-current/lib/libmp/tests/ |
H A D | Makefile | 5 LIBADD+= mp
|
/freebsd-current/lib/libc/db/mpool/ |
H A D | mpool.c | 62 MPOOL *mp; local 79 if ((mp = (MPOOL *)calloc(1, sizeof(MPOOL))) == NULL) 81 TAILQ_INIT(&mp->lqh); 83 TAILQ_INIT(&mp->hqh[entry]); 84 mp->maxcache = maxcache; 85 mp->npages = sb.st_size / pagesize; 86 mp->pagesize = pagesize; 87 mp->fd = fd; 88 return (mp); 96 mpool_filter(MPOOL *mp, voi argument 109 mpool_new(MPOOL *mp, pgno_t *pgnoaddr, u_int flags) argument 143 mpool_delete(MPOOL *mp, void *page) argument 174 mpool_get(MPOOL *mp, pgno_t pgno, u_int flags) argument 269 mpool_put(MPOOL *mp, void *page, u_int flags) argument 295 mpool_close(MPOOL *mp) argument 316 mpool_sync(MPOOL *mp) argument 335 mpool_bkt(MPOOL *mp) argument 390 mpool_write(MPOOL *mp, BKT *bp) argument 424 mpool_look(MPOOL *mp, pgno_t pgno) argument 450 mpool_stat(MPOOL *mp) argument [all...] |
H A D | mpool-compat.c | 35 __mpool_new__44bsd(MPOOL *mp, pgno_t *pgnoaddr) argument 38 return (mpool_new(mp, pgnoaddr, MPOOL_PAGE_NEXT));
|
/freebsd-current/usr.sbin/ppp/ |
H A D | mp.c | 77 #include "mp.h" 136 mp_ReadHeader(struct mp *mp, struct mbuf *m, struct mp_header *header) argument 138 if (mp->local_is12bit) { 194 struct mp *mp = (struct mp *)v; local 197 percent = MAX(mp->link.stats.total.in.OctetsPerSecond, 198 mp->link.stats.total.out.OctetsPerSecond) * 800 / 199 mp 210 mp_StopAutoloadTimer(struct mp *mp) argument 216 mp_CheckAutoloadTimer(struct mp *mp) argument 231 mp_RestartAutoloadTimer(struct mp *mp) argument 240 mp_Init(struct mp *mp, struct bundle *bundle) argument 297 mp_Up(struct mp *mp, struct datalink *dl) argument 381 mp_Down(struct mp *mp) argument 415 mp_Assemble(struct mp *mp, struct mbuf *m, struct physical *p) argument 632 mp_Output(struct mp *mp, struct bundle *bundle, struct link *l, struct mbuf *m, u_int32_t begin, u_int32_t end) argument 668 struct mp *mp = &bundle->ncp.mp; local 827 struct mp *mp = &arg->bundle->ncp.mp; local 959 struct mp *mp = &arg->bundle->ncp.mp; local 1198 mp_LinkLost(struct mp *mp, struct datalink *dl) argument 1206 mp_QueueLen(struct mp *mp) argument [all...] |
/freebsd-current/sys/kern/ |
H A D | vfs_mount.c | 135 static void mount_devctl_event(const char *type, struct mount *mp, bool donew); 154 struct mount *mp; local 156 mp = (struct mount *)mem; 157 mtx_init(&mp->mnt_mtx, "struct mount mtx", NULL, MTX_DEF); 158 mtx_init(&mp->mnt_listmtx, "struct mount vlist mtx", NULL, MTX_DEF); 159 lockinit(&mp->mnt_explock, PVFS, "explock", 0, 0); 160 mp->mnt_pcpu = uma_zalloc_pcpu(pcpu_zone_16, M_WAITOK | M_ZERO); 161 mp->mnt_ref = 0; 162 mp->mnt_vfs_ops = 1; 163 mp 170 struct mount *mp; local 495 struct mount *mp; local 524 vfs_ref(struct mount *mp) argument 556 struct mount *mp; local 586 vfs_register_for_notification(struct mount *mp, struct mount *ump, struct mount_upper_node *upper) argument 596 vfs_drain_upper_locked(struct mount *mp) argument 611 vfs_unregister_for_notification(struct mount *mp, struct mount_upper_node *upper) argument 625 vfs_unregister_upper(struct mount *mp, struct mount_upper_node *upper) argument 642 vfs_rel(struct mount *mp) argument 665 struct mount *mp; local 713 vfs_mount_destroy(struct mount *mp) argument 1120 struct mount *mp; local 1314 struct mount *mp; local 1726 struct mount *mp; local 1817 vfs_check_usecounts(struct mount *mp) argument 1835 dounmount_cleanup(struct mount *mp, struct vnode *coveredvp, int mntkflags) argument 1862 vfs_op_enter(struct mount *mp) argument 1895 vfs_op_exit_locked(struct mount *mp) argument 1909 vfs_op_exit(struct mount *mp) argument 1918 struct mount *mp; member in struct:vfs_op_barrier_ipi 1926 struct mount *mp; local 1939 struct mount *mp; local 1951 vfs_op_barrier_wait(struct mount *mp) argument 1967 vfs_assert_mount_counters(struct mount *mp) argument 1985 vfs_dump_mount_counters(struct mount *mp) argument 2028 vfs_mount_fetch_counter(struct mount *mp, enum mount_counter which) argument 2063 deferred_unmount_enqueue(struct mount *mp, uint64_t flags, bool requeue, int timeout_ticks) argument 2094 struct mount *mp, *tmp; local 2140 dounmount(struct mount *mp, uint64_t flags, struct thread *td) argument 2421 vfs_mount_error(struct mount *mp, const char *fmt, ...) argument 2751 __vfs_statfs(struct mount *mp, struct statfs *sbp) argument 2772 vfs_mountedfrom(struct mount *mp, const char *from) argument 2965 mount_devctl_event(const char *type, struct mount *mp, bool donew) argument 3020 vfs_remount_ro(struct mount *mp) argument 3114 struct mount *mp; local 3183 struct mount *mp; local [all...] |
H A D | vfs_export.c | 72 static int vfs_hang_addrlist(struct mount *mp, struct netexport *nep, 101 vfs_hang_addrlist(struct mount *mp, struct netexport *nep, argument 127 if (mp->mnt_flag & MNT_DEFEXPORTED) { 128 vfs_mount_error(mp, 129 "MNT_DEFEXPORTED already set for mount %p", mp); 143 MNT_ILOCK(mp); 144 mp->mnt_flag |= MNT_DEFEXPORTED; 145 MNT_IUNLOCK(mp); 151 vfs_mount_error(mp, "ex_addrlen %d is greater than %d", 164 vfs_mount_error(mp, "Invali 301 vfs_export(struct mount *mp, struct export_args *argp, bool do_exjail) argument 441 struct mount *mp; local 531 vfs_setpublicfs(struct mount *mp, struct netexport *nep, struct export_args *argp) argument 613 vfs_export_lookup(struct mount *mp, struct sockaddr *nam) argument 669 vfs_stdcheckexp(struct mount *mp, struct sockaddr *nam, uint64_t *extflagsp, struct ucred **credanonp, int *numsecflavors, int *secflavors) argument [all...] |
/freebsd-current/sys/fs/tmpfs/ |
H A D | tmpfs_vfsops.c | 116 tmpfs_update_mtime_lazy(struct mount *mp) argument 120 MNT_VNODE_FOREACH_LAZY(vp, mp, mvp, tmpfs_update_mtime_lazy_filter, NULL) { 129 tmpfs_update_mtime_all(struct mount *mp) argument 133 if (VFS_TO_TMPFS(mp)->tm_nomtime) 135 MNT_VNODE_FOREACH_ALL(vp, mp, mvp) { 153 tmpfs_check_rw_maps_cb(struct mount *mp __unused, vm_map_t map __unused, 168 tmpfs_revoke_rw_maps_cb(struct mount *mp __unused, vm_map_t map, 187 tmpfs_all_rw_maps(struct mount *mp, bool (*cb)(struct mount *mp, vm_map_t, argument 247 if (vp->v_mount != mp) { 271 tmpfs_check_rw_maps(struct mount *mp) argument 281 tmpfs_rw_to_ro(struct mount *mp) argument 322 tmpfs_mount(struct mount *mp) argument 495 tmpfs_unmount(struct mount *mp, int mntflags) argument 574 tmpfs_root(struct mount *mp, int flags, struct vnode **vpp) argument 585 tmpfs_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp) argument 627 tmpfs_statfs(struct mount *mp, struct statfs *sbp) argument 659 tmpfs_sync(struct mount *mp, int waitfor) argument 712 db_print_tmpfs(struct mount *mp, struct tmpfs_mount *tmp) argument 730 struct mount *mp; local [all...] |
/freebsd-current/sys/fs/unionfs/ |
H A D | union_vfsops.c | 72 unionfs_domount(struct mount *mp) argument 92 UNIONFSDEBUG("unionfs_mount(mp = %p)\n", mp); 104 if (mp->mnt_flag & MNT_ROOTFS) { 105 vfs_mount_error(mp, "Cannot union mount root filesystem"); 112 if (mp->mnt_flag & MNT_UPDATE) { 113 vfs_mount_error(mp, "unionfs does not support mount update"); 120 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len); 122 error = vfs_getopt(mp->mnt_optnew, "from", (void **)&target, 125 vfs_mount_error(mp, "Invali 373 unionfs_unmount(struct mount *mp, int mntflags) argument 412 unionfs_root(struct mount *mp, int flags, struct vnode **vpp) argument 433 unionfs_quotactl(struct mount *mp, int cmd, uid_t uid, void *arg, bool *mp_busy) argument 472 unionfs_statfs(struct mount *mp, struct statfs *sbp) argument 528 unionfs_sync(struct mount *mp, int waitfor) argument 535 unionfs_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp) argument 541 unionfs_fhtovp(struct mount *mp, struct fid *fidp, int flags, struct vnode **vpp) argument 548 unionfs_checkexp(struct mount *mp, struct sockaddr *nam, uint64_t *extflagsp, struct ucred **credanonp, int *numsecflavors, int *secflavors) argument 555 unionfs_extattrctl(struct mount *mp, int cmd, struct vnode *filename_vp, int namespace, const char *attrname) argument [all...] |
/freebsd-current/sys/fs/nullfs/ |
H A D | null_vfsops.c | 78 nullfs_mount(struct mount *mp) argument 89 NULLFSDEBUG("nullfs_mount(mp = %p)\n", (void *)mp); 91 if (mp->mnt_flag & MNT_ROOTFS) 97 if (mp->mnt_flag & MNT_UPDATE) { 101 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) 110 error = vfs_getopt(mp->mnt_optnew, "from", (void **)&target, &len); 112 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len); 119 if (mp->mnt_vnodecovered->v_op == &null_vnodeops && 120 VOP_ISLOCKED(mp 251 nullfs_unmount(struct mount *mp, int mntflags) argument 299 nullfs_root(struct mount *mp, int flags, struct vnode **vpp) argument 320 nullfs_quotactl(struct mount *mp, int cmd, uid_t uid, void *arg, bool *mp_busy) argument 351 nullfs_statfs(struct mount *mp, struct statfs *sbp) argument 387 nullfs_sync(struct mount *mp, int waitfor) argument 396 nullfs_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp) argument 410 nullfs_fhtovp(struct mount *mp, struct fid *fidp, int flags, struct vnode **vpp) argument 422 nullfs_extattrctl(struct mount *mp, int cmd, struct vnode *filename_vp, int namespace, const char *attrname) argument 431 nullfs_reclaim_lowervp(struct mount *mp, struct vnode *lowervp) argument 444 nullfs_unlink_lowervp(struct mount *mp, struct vnode *lowervp) argument [all...] |
/freebsd-current/contrib/netbsd-tests/fs/vfs/ |
H A D | t_rwtoro.c | 58 remount_ro(const atf_tc_t *tc, const char *mp, int expected_errno) argument 72 RL(rump_sys_statvfs1(mp, &sbuf, ST_WAIT)); 77 mount_args_length = rump_sys_mount(sbuf.f_fstypename, mp, MNT_GETARGS, 82 error = rump_sys_mount(sbuf.f_fstypename, mp, MNT_UPDATE | MNT_RDONLY, 129 basic_test(const atf_tc_t *tc, const char *mp, int expected_errno, argument 138 nargs.nulla_target = __UNCONST(mp);; 143 (*pre)(use_layer ? null_mount : mp); 144 remount_ro(tc, mp, expected_errno); 146 (*post)(use_layer ? null_mount : mp); 152 noneopen(const atf_tc_t *tc, const char *mp) argument 159 readopen(const atf_tc_t *tc, const char *mp) argument 166 writeopen(const atf_tc_t *tc, const char *mp) argument 173 read_unlinked(const atf_tc_t *tc, const char *mp) argument 180 layer_noneopen(const atf_tc_t *tc, const char *mp) argument 187 layer_readopen(const atf_tc_t *tc, const char *mp) argument 194 layer_writeopen(const atf_tc_t *tc, const char *mp) argument 201 layer_read_unlinked(const atf_tc_t *tc, const char *mp) argument [all...] |
/freebsd-current/bin/stty/ |
H A D | modes.c | 207 const struct modes *mp; local 212 for (mp = cmodes; mp->name; ++mp) 213 if (CHK(mp->name)) { 214 ip->t.c_cflag &= ~mp->unset; 215 ip->t.c_cflag |= mp->set; 219 for (mp = imodes; mp->name; ++mp) [all...] |
/freebsd-current/usr.sbin/lpr/lpd/ |
H A D | modes.c | 198 struct modes *mp; local 200 for (mp = cmodes; mp->name; ++mp) 201 if (CHK(str, mp->name)) { 202 ip->c_cflag &= ~mp->unset; 203 ip->c_cflag |= mp->set; 206 for (mp = imodes; mp->name; ++mp) [all...] |