Home
last modified time | relevance | path

Searched refs:curthread (Results 1 – 25 of 363) sorted by relevance

12345678910>>...15

/f-stack/freebsd/security/audit/
H A Daudit.h160 if (AUDITING_TD(curthread)) \
165 if (AUDITING_TD(curthread)) \
170 if (AUDITING_TD(curthread)) \
175 if (AUDITING_TD(curthread)) \
180 if (AUDITING_TD(curthread)) \
185 if (AUDITING_TD(curthread)) \
190 if (AUDITING_TD(curthread)) \
195 if (AUDITING_TD(curthread)) \
200 if (AUDITING_TD(curthread)) \
205 if (AUDITING_TD(curthread)) \
[all …]
/f-stack/lib/
H A Dff_ngctl.c43 int error = sys_socket(curthread, uap); in ngctl_socket()
48 return curthread->td_retval[0]; in ngctl_socket()
54 int error = sys_connect(curthread, uap); in ngctl_connect()
66 int error = sys_bind(curthread, uap); in ngctl_bind()
78 int error = sys_recvfrom(curthread, uap); in ngctl_recvfrom()
83 return curthread->td_retval[0]; in ngctl_recvfrom()
89 int error = sys_sendto(curthread, uap); in ngctl_sendto()
94 return curthread->td_retval[0]; in ngctl_sendto()
100 int error = kern_close(curthread, sockfd); in ngctl_close()
H A Dff_syscall_wrapper.c710 rc = curthread->td_retval[0]; in ff_read()
734 rc = curthread->td_retval[0]; in ff_readv()
762 rc = curthread->td_retval[0]; in ff_write()
785 rc = curthread->td_retval[0]; in ff_writev()
826 rc = curthread->td_retval[0]; in ff_sendto()
854 rc = curthread->td_retval[0]; in ff_sendmsg()
892 rc = curthread->td_retval[0]; in ff_recvfrom()
921 rc = curthread->td_retval[0]; in ff_recvmsg()
951 rc = curthread->td_retval[0]; in ff_fcntl()
970 rc = curthread->td_retval[0]; in ff_accept()
[all …]
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_file_os.c58 td = curthread; in zfs_file_open()
75 fo_close(fp, curthread); in zfs_file_close()
87 td = curthread; in zfs_file_write_impl()
144 td = curthread; in zfs_file_read_impl()
192 td = curthread; in zfs_file_seek()
208 td = curthread; in zfs_file_getattr()
263 fdrop(fp, curthread); in zfs_file_put()
264 fdrop(fp, curthread); in zfs_file_put()
281 tmpfp = curthread->td_fpop; in zfs_file_private()
282 curthread->td_fpop = fp; in zfs_file_private()
[all …]
/f-stack/freebsd/x86/cpufreq/
H A Dhwpstate_intel.c139 thread_lock(curthread); in intel_hwp_dump_sysctl_handler()
141 thread_unlock(curthread); in intel_hwp_dump_sysctl_handler()
187 thread_lock(curthread); in intel_hwp_dump_sysctl_handler()
188 sched_unbind(curthread); in intel_hwp_dump_sysctl_handler()
266 thread_lock(curthread); in sysctl_epp_select()
325 thread_lock(curthread); in sysctl_epp_select()
326 sched_unbind(curthread); in sysctl_epp_select()
383 thread_lock(curthread); in set_autonomous_hwp()
471 thread_lock(curthread); in set_autonomous_hwp()
591 thread_lock(curthread); in intel_hwpstate_resume()
[all …]
/f-stack/freebsd/sys/
H A Dtslog.h42 #define TSENTER() TSRAW(curthread, TS_ENTER, __func__, NULL)
43 #define TSENTER2(x) TSRAW(curthread, TS_ENTER, __func__, x)
44 #define TSEXIT() TSRAW(curthread, TS_EXIT, __func__, NULL)
45 #define TSEXIT2(x) TSRAW(curthread, TS_EXIT, __func__, x)
47 #define TSEVENT(x) TSRAW(curthread, TS_EVENT, x, NULL)
48 #define TSEVENT2(x, y) TSRAW(curthread, TS_EVENT, x, y)
H A Dkpilite.h39 KASSERT((struct thread *)td == curthread, ("sched_pin called on non curthread")); in sched_pin_lite()
48 KASSERT((struct thread *)td == curthread, ("sched_unpin called on non curthread")); in sched_unpin_lite()
H A Dpcpu.h226 #ifndef curthread
227 #define curthread PCPU_GET(curthread) macro
229 #define curproc (curthread->td_proc)
232 #define ZPCPU_ASSERT_PROTECTED() MPASS(curthread->td_critnest > 0)
/f-stack/freebsd/arm64/arm64/
H A Dvfp.c183 td = curthread; in vfp_save_state()
211 curpcb = curthread->td_pcb; in vfp_restore_state()
222 vfp_restore(curthread->td_pcb->pcb_fpusaved); in vfp_restore_state()
223 PCPU_SET(fpcurthread, curthread); in vfp_restore_state()
285 if (curthread == PCPU_GET(fpcurthread)) { in fpu_kern_enter()
286 vfp_save_state(curthread, pcb); in fpu_kern_enter()
308 vfp_save_state(curthread, pcb); in fpu_kern_enter()
362 struct pcb *pcb = curthread->td_pcb; in fpu_kern_thread()
364 KASSERT((curthread->td_pflags & TDP_KTHREAD) != 0, in fpu_kern_thread()
379 if ((curthread->td_pflags & TDP_KTHREAD) == 0) in is_fpu_kern_thread()
[all …]
/f-stack/freebsd/kern/
H A Dkern_rwlock.c289 tid = (uintptr_t)curthread; in _rw_wlock_cookie()
299 TD_LOCKS_INC(curthread); in _rw_wlock_cookie()
310 td = curthread; in __rw_try_wlock_int()
345 TD_LOCKS_INC(curthread); in __rw_try_wlock_int()
379 TD_LOCKS_DEC(curthread); in _rw_wunlock_cookie()
666 td = curthread; in __rw_rlock_int()
689 TD_LOCKS_INC(curthread); in __rw_rlock_int()
725 TD_LOCKS_INC(curthread); in __rw_try_rlock_int()
852 td = curthread; in _rw_runlock_cookie_int()
861 TD_LOCKS_DEC(curthread); in _rw_runlock_cookie_int()
[all …]
H A Dkern_sx.c298 TD_LOCKS_INC(curthread); in sx_try_slock_int()
340 TD_LOCKS_INC(curthread); in _sx_xlock()
354 td = curthread; in sx_try_xlock_int()
389 TD_LOCKS_INC(curthread); in sx_try_xlock_int()
417 TD_LOCKS_DEC(curthread); in _sx_xunlock()
535 curthread->td_sx_slocks++; in sx_downgrade_int()
1044 td = curthread; in _sx_slock_hard()
1269 td = curthread; in _sx_slock_int()
1280 TD_LOCKS_INC(curthread); in _sx_slock_int()
1376 td = curthread; in _sx_sunlock_int()
[all …]
H A Dkern_rmlock.c161 td = curthread; in unlock_rm()
614 TD_LOCKS_INC(curthread); in _rm_wlock_debug()
630 TD_LOCKS_DEC(curthread); in _rm_wunlock_debug()
645 curthread) == 0, in _rm_rlock_debug()
672 TD_LOCKS_INC(curthread); in _rm_rlock_debug()
694 TD_LOCKS_DEC(curthread); in _rm_runlock_debug()
903 CRITICAL_ASSERT(curthread); in rms_int_pcpu()
918 CRITICAL_ASSERT(curthread); in rms_int_influx_enter()
927 CRITICAL_ASSERT(curthread); in rms_int_influx_exit()
965 CRITICAL_ASSERT(curthread); in rms_int_readers_inc()
[all …]
H A Dkern_ktrace.c225 td = curthread; in sysctl_kern_ktrace_request_pool()
326 struct thread *td = curthread; in ktr_getrequest()
477 ktr_submitrequest(curthread, req); in ktrsyscall()
496 ktr_submitrequest(curthread, req); in ktrsysret()
569 struct thread *td = curthread; in ktrprocctor()
647 ktr_submitrequest(curthread, req);
720 struct thread *td = curthread; in ktrpsig()
739 struct thread *td = curthread; in ktrcsw()
847 struct thread *td = curthread; in ktrcapfail()
874 struct thread *td = curthread; in ktrfault()
[all …]
H A Dkern_lock.c209 TD_LOCKS_INC(curthread); in lockmgr_note_shared_acquire()
210 TD_SLOCKS_INC(curthread); in lockmgr_note_shared_acquire()
220 TD_LOCKS_DEC(curthread); in lockmgr_note_shared_release()
221 TD_SLOCKS_DEC(curthread); in lockmgr_note_shared_release()
234 TD_LOCKS_INC(curthread); in lockmgr_note_exclusive_acquire()
244 TD_LOCKS_DEC(curthread); in lockmgr_note_exclusive_release()
559 MPASS(owner != curthread); in lockmgr_slock_adaptive()
601 tid = (uintptr_t)curthread; in lockmgr_slock_hard()
826 TD_LOCKS_INC(curthread); in lockmgr_xlock_hard()
1383 TD_SLOCKS_INC(curthread); in __lockmgr_args()
[all …]
H A Dkern_cpu.c334 thread_lock(curthread); in cf_set_method()
338 thread_unlock(curthread); in cf_set_method()
342 thread_lock(curthread); in cf_set_method()
343 sched_unbind(curthread); in cf_set_method()
344 sched_prio(curthread, pri); in cf_set_method()
345 thread_unlock(curthread); in cf_set_method()
361 thread_lock(curthread); in cf_set_method()
365 thread_unlock(curthread); in cf_set_method()
369 thread_lock(curthread); in cf_set_method()
370 sched_unbind(curthread); in cf_set_method()
[all …]
H A Dkern_mutex.c277 tid = (uintptr_t)curthread; in __mtx_lock_flags()
288 TD_LOCKS_INC(curthread); in __mtx_lock_flags()
313 TD_LOCKS_DEC(curthread); in __mtx_unlock_flags()
342 tid = (uintptr_t)curthread; in __mtx_lock_spin_flags()
423 td = curthread; in _mtx_trylock_flags_int()
463 TD_LOCKS_INC(curthread); in _mtx_trylock_flags_int()
517 td = curthread; in __mtx_lock_sleep()
721 tid = (uintptr_t)curthread; in _mtx_lock_spin_cookie()
832 tid = (uintptr_t)curthread; in _thread_lock()
876 tid = (uintptr_t)curthread; in thread_lock_flags_()
[all …]
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dzrlock.c84 if (zrl->zr_owner == curthread) { in zrl_add_impl()
87 kthread_t *, curthread, in zrl_add_impl()
90 zrl->zr_owner = curthread; in zrl_add_impl()
112 if (zrl->zr_owner == curthread) { in zrl_remove()
132 zrl->zr_owner = curthread; in zrl_tryenter()
150 ASSERT3P(zrl->zr_owner, ==, curthread); in zrl_exit()
H A Drrwlock.c175 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()
269 ASSERT(rrl->rr_writer == curthread); in rrw_exit()
290 held = (rrl->rr_writer == curthread); in rrw_held()
306 (void *)curthread, (void *)rn->rn_rrl); in rrw_tsd_destroy()
358 #define RRM_TD_LOCK() (((uint32_t)(uintptr_t)(curthread)) % RRM_NUM_LOCKS)
380 if (rrl->locks[0].rr_writer == curthread) { in rrm_exit()
/f-stack/freebsd/security/mac_veriexec_parser/
H A Dmac_veriexec_parser.c245 NDINIT(nid, LOOKUP, 0, UIO_SYSSPACE, path, curthread); in open_file()
273 rc = VOP_GETATTR(nid.ni_vp, &va, curthread->td_ucred); in read_manifest()
284 curthread->td_ucred, NOCRED, &resid, curthread); in read_manifest()
294 (void)vn_close(nid.ni_vp, FREAD, curthread->td_ucred, curthread); in read_manifest()
356 rc = VOP_GETATTR(nid.ni_vp, &va, curthread->td_ucred); in parse_entry()
373 vn_close(nid.ni_vp, FREAD, curthread->td_ucred, curthread); in parse_entry()
/f-stack/freebsd/ddb/
H A Ddb_print.c70 if (curthread->td_frame == NULL || in db_show_regs()
71 curthread->td_frame == oldtf) { in db_show_regs()
75 kdb_frame = curthread->td_frame; in db_show_regs()
/f-stack/freebsd/x86/x86/
H A Dstack_machdep.c101 td = curthread; in stack_capture_intr()
116 if (TD_IS_RUNNING(td) && td != curthread) in stack_save_td()
119 if (td == curthread) { in stack_save_td()
175 stack_capture(curthread, st, fp); in stack_save()
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/zfs/sys/
H A Dzfs_context_os.h55 #define tsd_get(key) osd_thread_get(curthread, (key))
56 #define tsd_set(key, value) osd_thread_set(curthread, (key), (value))
81 #define current curthread
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dthread.h32 #define getcomm() curthread->td_name
33 #define getpid() curthread->td_tid
/f-stack/lib/include/sys/
H A Dpcpu.h35 #ifndef curthread
36 #define curthread __curthread macro
/f-stack/freebsd/amd64/include/
H A Dpcpu_aux.h63 #define curthread (__curthread()) macro
65 #define curpcb (&curthread->td_md.md_pcb)

12345678910>>...15