| /netbsd/src/sys/kern/ |
| D | kern_rwlock.c | 285 uintptr_t owner, incr, need_wait, set_wait, curthread, next; in rw_vector_enter() local 296 curthread = (uintptr_t)l; in rw_vector_enter() 299 RW_ASSERT(rw, curthread != 0); in rw_vector_enter() 323 incr = curthread | RW_WRITE_LOCKED; in rw_vector_enter() 353 if (__predict_false(RW_OWNER(rw) == curthread)) { in rw_vector_enter() 410 if (op == RW_READER || (rw->rw_owner & RW_THREAD) == curthread) in rw_vector_enter() 426 RW_ASSERT(rw, (op != RW_READER && RW_OWNER(rw) == curthread) || in rw_vector_enter() 439 uintptr_t curthread, owner, decr, newown, next; in rw_vector_exit() local 445 curthread = (uintptr_t)l; in rw_vector_exit() 446 RW_ASSERT(rw, curthread != 0); in rw_vector_exit() [all …]
|
| D | kern_mutex.c | 231 MUTEX_ACQUIRE(kmutex_t *mtx, uintptr_t curthread) in MUTEX_ACQUIRE() argument 235 uintptr_t newown = curthread; in MUTEX_ACQUIRE() 452 uintptr_t owner, curthread; in mutex_vector_enter() local 515 curthread = (uintptr_t)curlwp; in mutex_vector_enter() 518 MUTEX_ASSERT(mtx, curthread != 0); in mutex_vector_enter() 545 if (MUTEX_ACQUIRE(mtx, curthread)) in mutex_vector_enter() 550 if (__predict_false(MUTEX_OWNER(owner) == curthread)) { in mutex_vector_enter() 706 MUTEX_DASSERT(mtx, MUTEX_OWNER(mtx->mtx_owner) == curthread); in mutex_vector_enter() 719 uintptr_t curthread; in mutex_vector_exit() local 746 curthread = (uintptr_t)curlwp; in mutex_vector_exit() [all …]
|
| /netbsd/src/external/cddl/osnet/dev/dtrace/ |
| D | dtrace_vtime.c | 94 if (curthread->t_dtrace_start != 0) { in dtrace_vtime_switch() 95 curthread->t_dtrace_vtime += ts - curthread->t_dtrace_start; in dtrace_vtime_switch() 96 curthread->t_dtrace_start = 0; in dtrace_vtime_switch()
|
| /netbsd/src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| D | rrwlock.c | 175 ASSERT(rrl->rr_writer != curthread); in rrw_enter_read_impl() 217 ASSERT(rrl->rr_writer != curthread); in rrw_enter_write() 226 rrl->rr_writer = curthread; in rrw_enter_write() 268 ASSERT(rrl->rr_writer == curthread); in rrw_exit() 289 held = (rrl->rr_writer == curthread); in rrw_held() 305 (void *)curthread, (void *)rn->rn_rrl); in rrw_tsd_destroy() 357 #define RRM_TD_LOCK() (((uint32_t)(uintptr_t)(curthread)) % RRM_NUM_LOCKS) 379 if (rrl->locks[0].rr_writer == curthread) { in rrm_exit()
|
| D | zrlock.c | 83 if (zrl->zr_owner == curthread) { in zrl_add_impl() 87 zrl->zr_owner = curthread; in zrl_add_impl() 109 if (zrl->zr_owner == curthread) { in zrl_remove() 129 zrl->zr_owner = curthread; in zrl_tryenter() 147 ASSERT3P(zrl->zr_owner, ==, curthread); in zrl_exit()
|
| D | zfs_onexit.c | 136 tmpfp = curthread->td_fpop; in zfs_onexit_fd_hold() 137 curthread->td_fpop = fp; in zfs_onexit_fd_hold() 141 curthread->td_fpop = tmpfp; in zfs_onexit_fd_hold()
|
| D | spa_misc.c | 517 ASSERT(scl->scl_writer != curthread); in spa_config_tryenter() 524 scl->scl_writer = curthread; in spa_config_tryenter() 541 if (scl->scl_writer == curthread) in spa_config_enter() 551 ASSERT(scl->scl_writer != curthread); in spa_config_enter() 557 scl->scl_writer = curthread; in spa_config_enter() 576 scl->scl_writer == curthread); in spa_config_exit() 594 (rw == RW_WRITER && scl->scl_writer == curthread)) in spa_config_held()
|
| D | trim_map.c | 560 (void) snprintf(curthread->td_name, sizeof(curthread->td_name), in trim_thread() 587 spa->spa_trim_thread = curthread; in trim_thread()
|
| D | zfs_ctldir.c | 130 err = vfs_hash_get(mp, (u_int)id, flags, curthread, vpp, in sfs_vnode_get() 142 err = vfs_hash_insert(vp, (u_int)id, flags, curthread, vpp, in sfs_vnode_insert() 931 err = mount_snapshot(curthread, vpp, "zfs", mountpoint, fullname, 0); 1140 vget(vp, locked | LK_VNHELD | LK_RETRY, curthread); in zfsctl_snapshot_vptocnp() 1248 error = dounmount(mp, fflags, curthread); in zfsctl_umount_snapshots() 2037 error = dounmount(mp, fflags, curthread); in zfsctl_umount_snapshots()
|
| D | spa_history.c | 188 if (jailed(curthread->td_ucred)) in spa_history_zone() 189 return (curthread->td_ucred->cr_prison->pr_hostname); in spa_history_zone()
|
| /netbsd/src/external/cddl/osnet/dist/lib/libzpool/common/ |
| D | kernel.c | 146 return (mp->m_owner == curthread); in zmutex_owned() 154 ASSERT(mp->m_owner != curthread); in mutex_enter() 157 mp->m_owner = curthread; in mutex_enter() 167 mp->m_owner = curthread; in mutex_tryenter() 178 ASSERT(mutex_owner(mp) == curthread); in mutex_exit() 220 ASSERT(rwlp->rw_owner != curthread); in rw_enter() 230 rwlp->rw_owner = curthread; in rw_enter() 240 if (rwlp->rw_owner == curthread) { in rw_exit() 260 ASSERT(rwlp->rw_owner != curthread); in rw_tryenter() 275 rwlp->rw_owner = curthread; in rw_tryenter() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/ |
| D | schedlock.exp | 256 set curthread [get_current_thread "before"] 263 check_result "continue" $curthread $cont_args 1 273 set curthread [get_current_thread "before"] 293 check_result $cmd $curthread $before_args $locked
|
| /netbsd/src/external/cddl/osnet/dev/systrace/ |
| D | systrace.c | 161 #define curthread curlwp macro 256 curthread->t_dtrace_systrace_args = uargs; in systrace_probe() 261 curthread->t_dtrace_systrace_args = NULL; in systrace_probe() 318 uargs = curthread->t_dtrace_systrace_args; in systrace_getargval()
|
| /netbsd/src/sys/arch/hppa/include/ |
| D | mutex.h | 162 MUTEX_ACQUIRE(struct kmutex *mtx, uintptr_t curthread) in MUTEX_ACQUIRE() argument 166 mtx->mtx_owner = curthread; in MUTEX_ACQUIRE()
|
| /netbsd/src/external/cddl/osnet/lib/libdtrace/ |
| D | psinfo.d | 90 inline psinfo_t *curpsinfo = xlate <psinfo_t *> (curthread->l_proc); 94 inline lwpsinfo_t *curlwpsinfo = xlate <lwpsinfo_t *> (curthread);
|
| D | sched.d | 67 inline cpuinfo_t *curcpu = xlate <cpuinfo_t *> (curthread->t_cpu);
|
| /netbsd/src/external/cddl/osnet/dist/uts/common/sys/ |
| D | callb.h | 145 strlcpy(curthread->td_name, (name), \ 146 sizeof(curthread->td_name)); \
|
| D | cred.h | 52 #define CRED() curthread->t_cred
|
| /netbsd/src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/ |
| D | zfs_context.h | 148 #define tsd_get(key) osd_thread_get(curthread, (key)) 149 #define tsd_set(key, value) osd_thread_set(curthread, (key), (value))
|
| /netbsd/src/external/cddl/osnet/sys/sys/ |
| D | proc.h | 77 #define curthread curlwp macro
|
| /netbsd/src/external/cddl/osnet/dev/dtrace/amd64/ |
| D | dtrace_subr.c | 164 kthread_t *t = curthread; in dtrace_safe_synchronous_signal() 189 kthread_t *t = curthread; in dtrace_safe_defer_signal()
|
| /netbsd/src/sys/fs/nfs/common/ |
| D | nfs_lock.c | 164 error = nfslockdans(curthread, &la); in nfslock_write() 248 td = curthread; in nfs_dolock()
|
| D | nfs_commonkrpc.c | 177 struct thread *td = curthread; in newnfs_connect() 1083 td = curthread; /* XXX */ in newnfs_set_sigmask() 1109 td = curthread; /* XXX */ in newnfs_restore_sigmask() 1127 td = curthread; /* XXX */ in newnfs_msleep()
|
| /netbsd/src/external/cddl/osnet/dev/dtrace/i386/ |
| D | dtrace_subr.c | 172 kthread_t *t = curthread; in dtrace_safe_synchronous_signal() 197 kthread_t *t = curthread; in dtrace_safe_defer_signal()
|
| /netbsd/src/external/cddl/osnet/dist/uts/common/dtrace/ |
| D | dtrace.c | 504 (where) = ((curthread->t_did + DIF_VARIABLE_MAX) & \ 516 (where) = ((curthread->td_tid + DIF_VARIABLE_MAX) & \ 523 (where) = ((curthread->l_lid + (curthread->l_proc->p_pid << 16) + \ 1009 if (DTRACE_INRANGE(addr, sz, curthread, sizeof (kthread_t))) { in dtrace_canload_remains() 1010 DTRACE_RANGE_REMAIN(remain, addr, curthread, in dtrace_canload_remains() 1015 if ((p = curthread->t_procp) != NULL && DTRACE_INRANGE(addr, in dtrace_canload_remains() 1016 sz, curthread->t_procp, sizeof (proc_t))) { in dtrace_canload_remains() 1017 DTRACE_RANGE_REMAIN(remain, addr, curthread->t_procp, in dtrace_canload_remains() 1023 if (curthread->t_cred != NULL && DTRACE_INRANGE(addr, sz, in dtrace_canload_remains() 1024 curthread->t_cred, sizeof (cred_t))) { in dtrace_canload_remains() [all …]
|