/freebsd-11-stable/sys/compat/cloudabi32/ |
H A D | cloudabi32_poll.c | 212 cloudabi32_sys_poll(struct thread *td, struct cloudabi32_sys_poll_args *uap) argument 242 td, TO_PTR(sub.condvar.condvar), 247 td->td_retval[0] = 1; 253 td, TO_PTR(sub.lock.lock), 256 td->td_retval[0] = 1; 262 td, TO_PTR(sub.lock.lock), 265 td->td_retval[0] = 1; 284 td, TO_PTR(sub[0].condvar.condvar), 292 td->td_retval[0] = 1; 298 td [all...] |
H A D | cloudabi32_fd.c | 88 cloudabi32_sys_fd_pread(struct thread *td, argument 97 error = kern_preadv(td, uap->fd, uio, uap->offset); 103 cloudabi32_sys_fd_pwrite(struct thread *td, argument 112 error = kern_pwritev(td, uap->fd, uio, uap->offset); 118 cloudabi32_sys_fd_read(struct thread *td, argument 127 error = kern_readv(td, uap->fd, uio); 133 cloudabi32_sys_fd_write(struct thread *td, argument 142 error = kern_writev(td, uap->fd, uio);
|
/freebsd-11-stable/sys/compat/cloudabi64/ |
H A D | cloudabi64_poll.c | 212 cloudabi64_sys_poll(struct thread *td, struct cloudabi64_sys_poll_args *uap) argument 242 td, TO_PTR(sub.condvar.condvar), 247 td->td_retval[0] = 1; 253 td, TO_PTR(sub.lock.lock), 256 td->td_retval[0] = 1; 262 td, TO_PTR(sub.lock.lock), 265 td->td_retval[0] = 1; 284 td, TO_PTR(sub[0].condvar.condvar), 292 td->td_retval[0] = 1; 298 td [all...] |
H A D | cloudabi64_fd.c | 88 cloudabi64_sys_fd_pread(struct thread *td, argument 97 error = kern_preadv(td, uap->fd, uio, uap->offset); 103 cloudabi64_sys_fd_pwrite(struct thread *td, argument 112 error = kern_pwritev(td, uap->fd, uio, uap->offset); 118 cloudabi64_sys_fd_read(struct thread *td, argument 127 error = kern_readv(td, uap->fd, uio); 133 cloudabi64_sys_fd_write(struct thread *td, argument 142 error = kern_writev(td, uap->fd, uio);
|
/freebsd-11-stable/sys/amd64/ia32/ |
H A D | ia32_reg.c | 80 fill_regs32(struct thread *td, struct reg32 *regs) argument 84 tp = td->td_frame; 114 set_regs32(struct thread *td, struct reg32 *regs) argument 118 tp = td->td_frame; 125 set_pcb_flags(td->td_pcb, PCB_FULL_IRET); 143 fill_fpregs32(struct thread *td, struct fpreg32 *regs) argument 154 fpugetregs(td); 155 sv_fpu = get_pcb_user_save_td(td); 169 penv_87->en_fcs = td->td_frame->tf_cs; 173 penv_87->en_fos = td 187 set_fpregs32(struct thread *td, struct fpreg32 *regs) argument 219 fill_dbregs32(struct thread *td, struct dbreg32 *regs) argument 231 set_dbregs32(struct thread *td, struct dbreg32 *regs) argument [all...] |
/freebsd-11-stable/gnu/usr.bin/gdb/kgdb/ |
H A D | kthr.c | 78 struct thread td; local 89 if (kvm_read(kvm, addr, &td, sizeof(td)) != 90 sizeof(td)) { 97 if (td.td_tid == dumptid) 99 else if (td.td_oncpu != NOCPU && 100 CPU_ISSET(td.td_oncpu, &stopped_cpus)) 101 kt->pcb = kgdb_trgt_core_pcb(td.td_oncpu); 103 kt->pcb = (uintptr_t)td.td_pcb; 104 kt->kstack = td [all...] |
/freebsd-11-stable/sys/fs/procfs/ |
H A D | procfs_ctl.c | 107 static int procfs_control(struct thread *td, struct proc *p, int op); 110 procfs_control(struct thread *td, struct proc *p, int op) argument 122 if ((error = p_candebug(td, p)) != 0) 130 if (p->p_pid == td->td_proc->p_pid) { 147 if (p->p_pptr != td->td_proc) { 148 proc_reparent(p, td->td_proc); 165 ((error = p_candebug(td, p)))) { 171 * Target process must be stopped, owned by (td) and 182 if (!TRACE_WAIT_P(td->td_proc, p)) { 242 wakeup(td [all...] |
/freebsd-11-stable/tools/tools/kttcp/sys/ |
H A D | kttcp.c | 116 kttcpopen(struct cdev *dev, int flag, int mode, struct thread *td) argument 123 kttcpioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td) argument 132 error = kttcp_send(td, (struct kttcp_io_args *) data); 136 error = kttcp_recv(td, (struct kttcp_io_args *) data); 149 kttcp_send(struct thread *td, struct kttcp_io_args *kio) argument 163 error = fget(td, kio->kio_socket, &fp); 168 fdrop(fp, td); 180 &auio, NULL, NULL, 0, td); 186 fdrop(fp, td); 197 kttcp_recv(struct thread *td, struc argument [all...] |
/freebsd-11-stable/sys/compat/linux/ |
H A D | linux_stats.c | 76 linux_kern_statat(struct thread *td, int flag, int fd, char *path, argument 80 return (kern_statat(td, flag, fd, path, pathseg, sbp, 86 linux_kern_stat(struct thread *td, char *path, enum uio_seg pathseg, argument 90 return (linux_kern_statat(td, 0, AT_FDCWD, path, pathseg, sbp)); 94 linux_kern_lstat(struct thread *td, char *path, enum uio_seg pathseg, argument 98 return (linux_kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, path, 104 translate_fd_major_minor(struct thread *td, int fd, struct stat *buf) argument 115 fget(td, fd, cap_rights_init(&rights), &fp) != 0) 131 fdrop(fp, td); 162 linux_newstat(struct thread *td, struc argument 183 linux_newlstat(struct thread *td, struct linux_newlstat_args *args) argument 205 linux_newfstat(struct thread *td, struct linux_newfstat_args *args) argument 256 linux_stat(struct thread *td, struct linux_stat_args *args) argument 278 linux_lstat(struct thread *td, struct linux_lstat_args *args) argument 390 linux_statfs(struct thread *td, struct linux_statfs_args *args) argument 435 linux_statfs64(struct thread *td, struct linux_statfs64_args *args) argument 463 linux_fstatfs64(struct thread *td, struct linux_fstatfs64_args *args) argument 488 linux_fstatfs(struct thread *td, struct linux_fstatfs_args *args) argument 518 linux_ustat(struct thread *td, struct linux_ustat_args *args) argument 566 linux_stat64(struct thread *td, struct linux_stat64_args *args) argument 587 linux_lstat64(struct thread *td, struct linux_lstat64_args *args) argument 608 linux_fstat64(struct thread *td, struct linux_fstat64_args *args) argument 627 linux_fstatat64(struct thread *td, struct linux_fstatat64_args *args) argument 657 linux_newfstatat(struct thread *td, struct linux_newfstatat_args *args) argument 687 linux_syncfs(struct thread *td, struct linux_syncfs_args *args) argument [all...] |
H A D | linux_mib.c | 65 static int linux_set_osname(struct thread *td, char *osname); 66 static int linux_set_osrelease(struct thread *td, char *osrelease); 67 static int linux_set_oss_version(struct thread *td, int oss_version); 75 linux_get_osname(req->td, osname); 79 error = linux_set_osname(req->td, osname); 95 linux_get_osrelease(req->td, osrelease); 99 error = linux_set_osrelease(req->td, osrelease); 115 oss_version = linux_get_oss_version(req->td); 119 error = linux_set_oss_version(req->td, oss_version); 452 linux_get_osname(struct thread *td, cha argument 463 linux_set_osname(struct thread *td, char *osname) argument 476 linux_get_osrelease(struct thread *td, char *dst) argument 487 linux_kernver(struct thread *td) argument 501 linux_set_osrelease(struct thread *td, char *osrelease) argument 517 linux_get_oss_version(struct thread *td) argument 531 linux_set_oss_version(struct thread *td, int oss_version) argument [all...] |
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_list.c | 99 struct pthread *td, *td_next; local 106 TAILQ_FOREACH_SAFE(td, &_thread_gc_list, gcle, td_next) { 107 if (td->tid != TID_TERMINATED) { 111 _thr_stack_free(&td->attr); 112 THR_GCLIST_REMOVE(td); 113 TAILQ_INSERT_HEAD(&worklist, td, gcle); 117 while ((td = TAILQ_FIRST(&worklist)) != NULL) { 118 TAILQ_REMOVE(&worklist, td, gcle); 123 if (td == _thr_initial) { 128 _thr_free(curthread, td); 272 struct pthread *td; local [all...] |
/freebsd-11-stable/sys/i386/isa/ |
H A D | npx.c | 517 npxexit(struct thread *td) argument 532 masked_exceptions = GET_FPU_CW(td) & GET_FPU_SW(td) & 0x7f; 540 td->td_proc->p_pid, td->td_proc->p_comm, 795 restore_npx_curthread(struct thread *td, struct pcb *pcb) argument 801 PCPU_SET(fpcurthread, td); 840 struct thread *td; local 844 td = curthread; 846 if (__predict_false(PCPU_GET(fpcurthread) == td)) { 891 npxswitch(struct thread *td, struct pcb *pcb) argument 942 struct thread *td; local 965 npxgetregs(struct thread *td) argument 1026 npxuserinited(struct thread *td) argument 1038 npxsetxstate(struct thread *td, char *xfpustate, size_t xfpustate_size) argument 1076 npxsetregs(struct thread *td, union savefpu *addr, char *xfpustate, size_t xfpustate_size) argument 1196 struct thread *td; local 1365 fpu_kern_enter(struct thread *td, struct fpu_kern_ctx *ctx, u_int flags) argument 1392 fpu_kern_leave(struct thread *td, struct fpu_kern_ctx *ctx) argument [all...] |
/freebsd-11-stable/contrib/atf/atf-c/detail/ |
H A D | sanity_test.c | 64 struct test_data *td = v; local 66 switch (td->m_type) { 68 INV(td->m_cond); 72 PRE(td->m_cond); 76 POST(td->m_cond); 80 if (!td->m_cond) 99 struct test_data td = { t, cond }; local 103 RE(atf_process_fork(&child, do_test_child, &outsb, &errsb, &td));
|
/freebsd-11-stable/sys/sys/ |
H A D | lock_profile.h | 51 void lock_profile_thread_exit(struct thread *td); 69 #define lock_profile_thread_exit(td) (void)0
|
H A D | resourcevar.h | 119 void addupc_intr(struct thread *td, uintfptr_t pc, u_int ticks); 120 void addupc_task(struct thread *td, uintfptr_t pc, u_int ticks); 130 int kern_proc_setrlimit(struct thread *td, struct proc *p, u_int which, 135 rlim_t lim_cur(struct thread *td, int which); 141 rlim_t lim_max(struct thread *td, int which); 143 void lim_rlimit(struct thread *td, int which, struct rlimit *rlp); 151 void rufetchtd(struct thread *td, struct rusage *ru); 152 void ruxagg(struct proc *p, struct thread *td);
|
H A D | selinfo.h | 58 void seltdfini(struct thread *td);
|
H A D | signalvar.h | 260 #define SIGPENDING(td) \ 261 ((!SIGISEMPTY((td)->td_siglist) && \ 262 !sigsetmasked(&(td)->td_siglist, &(td)->td_sigmask)) || \ 263 (!SIGISEMPTY((td)->td_proc->p_siglist) && \ 264 !sigsetmasked(&(td)->td_proc->p_siglist, &(td)->td_sigmask))) 364 int cursig(struct thread *td); 375 int ptracestop(struct thread *td, int sig, ksiginfo_t *si); 383 void sigexit(struct thread *td, in [all...] |
/freebsd-11-stable/sys/mips/include/ |
H A D | reg.h | 107 #define fill_dbregs32(td, reg) 0 108 #define set_dbregs32(td, reg) 0
|
/freebsd-11-stable/sys/powerpc/include/ |
H A D | frame.h | 80 #define trapframe(td) ((td)->td_frame)
|
/freebsd-11-stable/sys/dev/cxgb/ulp/tom/ |
H A D | cxgb_listen.c | 90 alloc_lctx(struct tom_data *td, struct inpcb *inp, int qset) argument 100 lctx->stid = alloc_stid(&td->tid_maps, lctx); 118 free_lctx(struct tom_data *td, struct listen_ctx *lctx) argument 132 free_stid(&td->tid_maps, lctx->stid); 156 listen_hash_add(struct tom_data *td, struct listen_ctx *lctx) argument 158 int bucket = listen_hashfn(lctx->inp, td->listen_mask); 160 mtx_lock(&td->lctx_hash_lock); 161 LIST_INSERT_HEAD(&td->listen_hash[bucket], lctx, link); 162 td->lctx_count++; 163 mtx_unlock(&td 170 listen_hash_find(struct tom_data *td, struct inpcb *inp) argument 189 listen_hash_del(struct tom_data *td, struct inpcb *inp) argument 213 release_lctx(struct tom_data *td, struct listen_ctx *lctx) argument 280 struct tom_data *td = sc->tom_softc; local 311 struct tom_data *td = sc->tom_softc; local 477 struct tom_data *td = sc->tom_softc; local 676 struct tom_data *td = sc->tom_softc; local 787 struct tom_data *td = t3_tomdata(tod); local 872 struct tom_data *td = t3_tomdata(tod); local 991 struct tom_data *td = sc->tom_softc; local 1042 struct tom_data *td = sc->tom_softc; local 1117 struct tom_data *td = sc->tom_softc; local [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | vfs_aio.c | 318 int aio_aqueue(struct thread *td, struct aiocb *ujob, 471 struct thread *td; local 474 error = sigev_findtd(p, sigev, &td); 481 tdsendsignal(p, td, ksi->ksi_signo, ksi); 721 aio_fsync_vnode(struct thread *td, struct vnode *vp) argument 734 error = VOP_FSYNC(vp, MNT_WAIT, td); 754 struct thread *td; local 771 td = curthread; 772 td_savedcred = td->td_ucred; 773 td 840 struct thread *td = curthread; local 1075 struct thread *td = curthread; local 1450 aio_aqueue(struct thread *td, struct aiocb *ujob, struct aioliojob *lj, int type, struct aiocb_ops *ops) argument 1825 kern_aio_return(struct thread *td, struct aiocb *ujob, struct aiocb_ops *ops) argument 1861 sys_aio_return(struct thread *td, struct aio_return_args *uap) argument 1871 kern_aio_suspend(struct thread *td, int njoblist, struct aiocb **ujoblist, struct timespec *ts) argument 1930 sys_aio_suspend(struct thread *td, struct aio_suspend_args *uap) argument 1959 sys_aio_cancel(struct thread *td, struct aio_cancel_args *uap) argument 2036 kern_aio_error(struct thread *td, struct aiocb *ujob, struct aiocb_ops *ops) argument 2077 sys_aio_error(struct thread *td, struct aio_error_args *uap) argument 2086 freebsd6_aio_read(struct thread *td, struct freebsd6_aio_read_args *uap) argument 2095 sys_aio_read(struct thread *td, struct aio_read_args *uap) argument 2104 freebsd6_aio_write(struct thread *td, struct freebsd6_aio_write_args *uap) argument 2113 sys_aio_write(struct thread *td, struct aio_write_args *uap) argument 2120 sys_aio_mlock(struct thread *td, struct aio_mlock_args *uap) argument 2127 kern_lio_listio(struct thread *td, int mode, struct aiocb * const *uacb_list, struct aiocb **acb_list, int nent, struct sigevent *sig, struct aiocb_ops *ops) argument 2271 freebsd6_lio_listio(struct thread *td, struct freebsd6_lio_listio_args *uap) argument 2309 sys_lio_listio(struct thread *td, struct lio_listio_args *uap) argument 2385 kern_aio_waitcomplete(struct thread *td, struct aiocb **ujobp, struct timespec *ts, struct aiocb_ops *ops) argument 2455 sys_aio_waitcomplete(struct thread *td, struct aio_waitcomplete_args *uap) argument 2473 kern_aio_fsync(struct thread *td, int op, struct aiocb *ujob, struct aiocb_ops *ops) argument 2483 sys_aio_fsync(struct thread *td, struct aio_fsync_args *uap) argument 2770 freebsd32_aio_return(struct thread *td, struct freebsd32_aio_return_args *uap) argument 2777 freebsd32_aio_suspend(struct thread *td, struct freebsd32_aio_suspend_args *uap) argument 2813 freebsd32_aio_error(struct thread *td, struct freebsd32_aio_error_args *uap) argument 2821 freebsd6_freebsd32_aio_read(struct thread *td, struct freebsd6_freebsd32_aio_read_args *uap) argument 2831 freebsd32_aio_read(struct thread *td, struct freebsd32_aio_read_args *uap) argument 2840 freebsd6_freebsd32_aio_write(struct thread *td, struct freebsd6_freebsd32_aio_write_args *uap) argument 2850 freebsd32_aio_write(struct thread *td, struct freebsd32_aio_write_args *uap) argument 2858 freebsd32_aio_mlock(struct thread *td, struct freebsd32_aio_mlock_args *uap) argument 2866 freebsd32_aio_waitcomplete(struct thread *td, struct freebsd32_aio_waitcomplete_args *uap) argument 2889 freebsd32_aio_fsync(struct thread *td, struct freebsd32_aio_fsync_args *uap) argument 2898 freebsd6_freebsd32_lio_listio(struct thread *td, struct freebsd6_freebsd32_lio_listio_args *uap) argument 2945 freebsd32_lio_listio(struct thread *td, struct freebsd32_lio_listio_args *uap) argument [all...] |
/freebsd-11-stable/sys/i386/ibcs2/ |
H A D | ibcs2_ioctl.c | 329 ibcs2_ioctl(td, uap) 330 struct thread *td; 333 struct proc *p = td->td_proc; 338 error = fget(td, uap->fd, cap_rights_init(&rights, CAP_IOCTL), &fp); 346 fdrop(fp, td); 361 td->td_ucred, td)) != 0) 400 td->td_ucred, td)) != 0) { 415 (caddr_t)&bts, td [all...] |
/freebsd-11-stable/sys/fs/fuse/ |
H A D | fuse.h | 152 #define RECTIFY_TDCR(td, cred) \ 154 if (! (td)) \ 155 (td) = curthread; \ 157 (cred) = (td)->td_ucred; \
|
/freebsd-11-stable/sys/dev/mem/ |
H A D | memdev.c | 67 struct thread *td) 72 error = priv_check(td, PRIV_KMEM_READ); 75 error = priv_check(td, PRIV_KMEM_WRITE); 77 error = securelevel_gt(td->td_ucred, 0); 66 memopen(struct cdev *dev __unused, int flags, int fmt __unused, struct thread *td) argument
|
/freebsd-11-stable/sys/arm/include/ |
H A D | cpu.h | 61 #define cpu_getstack(td) ((td)->td_frame->tf_usr_sp) 62 #define cpu_setstack(td, sp) ((td)->td_frame->tf_usr_sp = (sp))
|