Searched refs:td (Results 276 - 300 of 1053) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/sys/kern/
H A Dsubr_pcpu.c350 struct thread *td; local
355 td = pc->pc_curthread;
356 if (td != NULL)
357 db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid,
358 td->td_name);
363 td = pc->pc_fpcurthread;
364 if (td != NULL)
365 db_printf("%p: pid %d \"%s\"\n", td, td
[all...]
H A Dsys_process.c121 PROC_LOCK_ASSERT(td->td_proc, MA_OWNED); \
122 if ((td->td_proc->p_flag & P_INMEM) == 0) \
130 proc_read_regs(struct thread *td, struct reg *regs) argument
133 PROC_ACTION(fill_regs(td, regs));
137 proc_write_regs(struct thread *td, struct reg *regs) argument
140 PROC_ACTION(set_regs(td, regs));
144 proc_read_dbregs(struct thread *td, struct dbreg *dbregs) argument
147 PROC_ACTION(fill_dbregs(td, dbregs));
151 proc_write_dbregs(struct thread *td, struct dbreg *dbregs) argument
154 PROC_ACTION(set_dbregs(td, dbreg
162 proc_read_fpregs(struct thread *td, struct fpreg *fpregs) argument
169 proc_write_fpregs(struct thread *td, struct fpreg *fpregs) argument
178 proc_read_regs32(struct thread *td, struct reg32 *regs32) argument
185 proc_write_regs32(struct thread *td, struct reg32 *regs32) argument
192 proc_read_dbregs32(struct thread *td, struct dbreg32 *dbregs32) argument
199 proc_write_dbregs32(struct thread *td, struct dbreg32 *dbregs32) argument
206 proc_read_fpregs32(struct thread *td, struct fpreg32 *fpregs32) argument
213 proc_write_fpregs32(struct thread *td, struct fpreg32 *fpregs32) argument
221 proc_sstep(struct thread *td) argument
318 proc_iop(struct thread *td, struct proc *p, vm_offset_t va, void *buf, size_t len, enum uio_rw rw) argument
345 proc_readmem(struct thread *td, struct proc *p, vm_offset_t va, void *buf, size_t len) argument
353 proc_writemem(struct thread *td, struct proc *p, vm_offset_t va, void *buf, size_t len) argument
361 ptrace_vm_entry(struct thread *td, struct proc *p, struct ptrace_vm_entry *pve) argument
476 ptrace_vm_entry32(struct thread *td, struct proc *p, struct ptrace_vm_entry32 *pve32) argument
559 sys_ptrace(struct thread *td, struct ptrace_args *uap) argument
713 kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data) argument
[all...]
H A Dsysv_shm.c123 static int shmget_allocate_segment(struct thread *td, key_t key, size_t size,
125 static int shmget_existing(struct thread *td, size_t size, int shmflg,
322 kern_shmdt_locked(struct thread *td, const void *shmaddr) argument
324 struct proc *p = td->td_proc;
333 if (shm_find_prison(td->td_ucred) == NULL)
348 error = mac_sysvshm_check_shmdt(td->td_ucred, shmsegptr);
361 sys_shmdt(struct thread *td, struct shmdt_args *uap) argument
366 error = kern_shmdt_locked(td, uap->shmaddr);
372 kern_shmat_locked(struct thread *td, int shmid, const void *shmaddr, argument
376 struct proc *p = td
459 kern_shmat(struct thread *td, int shmid, const void *shmaddr, int shmflg) argument
477 sys_shmat(struct thread *td, struct shmat_args *uap) argument
484 kern_shmctl_locked(struct thread *td, int shmid, int cmd, void *buf, size_t *bufsz) argument
584 kern_shmctl(struct thread *td, int shmid, int cmd, void *buf, size_t *bufsz) argument
603 sys_shmctl(struct thread *td, struct shmctl_args *uap) argument
645 shmget_existing(struct thread *td, size_t size, int shmflg, int mode, int segnum) argument
671 shmget_allocate_segment(struct thread *td, key_t key, size_t size, int mode) argument
771 sys_shmget(struct thread *td, struct shmget_args *uap) argument
1270 oshmctl(struct thread *td, struct oshmctl_args *uap) argument
1336 sys_shmsys(struct thread *td, struct shmsys_args *uap) argument
1349 freebsd32_shmsys(struct thread *td, struct freebsd32_shmsys_args *uap) argument
1397 freebsd7_freebsd32_shmctl(struct thread *td, struct freebsd7_freebsd32_shmctl_args *uap) argument
1484 freebsd32_shmctl(struct thread *td, struct freebsd32_shmctl_args *uap) argument
1578 freebsd7_shmctl(struct thread *td, struct freebsd7_shmctl_args *uap) argument
[all...]
H A Dkern_time.c89 static int user_clock_nanosleep(struct thread *td, clockid_t clock_id,
121 settime(struct thread *td, struct timeval *tv) argument
142 if (securelevel_gt(td->td_ucred, 1) != 0) {
182 sys_clock_getcpuclockid2(struct thread *td, struct clock_getcpuclockid2_args *uap) argument
187 error = kern_clock_getcpuclockid2(td, uap->id, uap->which, &clk_id);
194 kern_clock_getcpuclockid2(struct thread *td, id_t id, int which, argument
211 pid = td->td_proc->p_pid;
216 tid = id == 0 ? td->td_tid : id;
232 sys_clock_gettime(struct thread *td, struct clock_gettime_args *uap) argument
237 error = kern_clock_gettime(td, ua
288 get_cputime(struct thread *td, clockid_t clock_id, struct timespec *ats) argument
316 kern_clock_gettime(struct thread *td, clockid_t clock_id, struct timespec *ats) argument
385 sys_clock_settime(struct thread *td, struct clock_settime_args *uap) argument
396 kern_clock_settime(struct thread *td, clockid_t clock_id, struct timespec *ats) argument
421 sys_clock_getres(struct thread *td, struct clock_getres_args *uap) argument
436 kern_clock_getres(struct thread *td, clockid_t clock_id, struct timespec *ts) argument
483 kern_nanosleep(struct thread *td, struct timespec *rqt, struct timespec *rmt) argument
493 kern_clock_nanosleep(struct thread *td, clockid_t clock_id, int flags, const struct timespec *rqt, struct timespec *rmt) argument
585 sys_nanosleep(struct thread *td, struct nanosleep_args *uap) argument
602 sys_clock_nanosleep(struct thread *td, struct clock_nanosleep_args *uap) argument
612 user_clock_nanosleep(struct thread *td, clockid_t clock_id, int flags, const struct timespec *ua_rqtp, struct timespec *ua_rmtp) argument
638 sys_gettimeofday(struct thread *td, struct gettimeofday_args *uap) argument
664 sys_settimeofday(struct thread *td, struct settimeofday_args *uap) argument
688 kern_settimeofday(struct thread *td, struct timeval *tv, struct timezone *tzp) argument
737 sys_getitimer(struct thread *td, struct getitimer_args *uap) argument
749 kern_getitimer(struct thread *td, u_int which, struct itimerval *aitv) argument
793 sys_setitimer(struct thread *td, struct setitimer_args *uap) argument
812 kern_setitimer(struct thread *td, u_int which, struct itimerval *aitv, struct itimerval *oitv) argument
1159 sys_ktimer_create(struct thread *td, struct ktimer_create_args *uap) argument
1183 kern_ktimer_create(struct thread *td, clockid_t clock_id, struct sigevent *evp, int *timerid, int preset_id) argument
1297 sys_ktimer_delete(struct thread *td, struct ktimer_delete_args *uap) argument
1323 kern_ktimer_delete(struct thread *td, int timerid) argument
1363 sys_ktimer_settime(struct thread *td, struct ktimer_settime_args *uap) argument
1379 kern_ktimer_settime(struct thread *td, int timer_id, int flags, struct itimerspec *val, struct itimerspec *oval) argument
1409 sys_ktimer_gettime(struct thread *td, struct ktimer_gettime_args *uap) argument
1421 kern_ktimer_gettime(struct thread *td, int timer_id, struct itimerspec *val) argument
1448 sys_ktimer_getoverrun(struct thread *td, struct ktimer_getoverrun_args *uap) argument
1455 kern_ktimer_getoverrun(struct thread *td, int timer_id) argument
1658 struct thread *td; local
[all...]
H A Dkern_mutex.c387 struct thread *td; local
396 td = curthread;
397 tid = (uintptr_t)td;
398 if (SCHEDULER_STOPPED_TD(td))
401 KASSERT(kdb_active != 0 || !TD_IS_IDLETHREAD(td),
469 struct thread *td; local
490 td = curthread;
491 tid = (uintptr_t)td;
508 if (SCHEDULER_STOPPED_TD(td))
520 if (__predict_false(lv_mtx_owner(v) == td)) {
797 _thread_lock(struct thread *td, int opts, const char *file, int line) argument
839 thread_lock_flags_(struct thread *td, int opts, const char *file, int line) argument
942 thread_lock_block(struct thread *td) argument
955 thread_lock_unblock(struct thread *td, struct mtx *new) argument
963 thread_lock_set(struct thread *td, struct mtx *new) argument
1203 struct thread *td; local
1229 struct thread *td; local
[all...]
/freebsd-11-stable/sys/dev/usb/controller/
H A Dehci.c135 ehci_qtd_t *td; member in struct:ehci_std_temp
1098 ehci_qtd_t *td; local
1103 td = xfer->td_transfer_cache;
1104 td_alt_next = td->alt_next;
1111 usb_pc_cpu_invalidate(td->page_cache);
1112 status = hc32toh(sc, td->qtd_status);
1120 if (len > td->len) {
1123 "0x%04x/0x%04x bytes\n", len, td->len);
1126 xfer->frlengths[xfer->aframes] += td->len - len;
1128 ehci_data_toggle_update(xfer, td
1272 ehci_sitd_t *td; local
1291 ehci_itd_t *td; local
1325 ehci_qtd_t *td; local
1559 ehci_qtd_t *td; local
1757 ehci_qtd_t *td; local
2053 ehci_sitd_t *td = xfer->td_transfer_first; local
2107 ehci_itd_t *td = xfer->td_transfer_first; local
2416 ehci_sitd_t *td; local
2464 ehci_sitd_t *td; local
2708 ehci_itd_t *td; local
2767 ehci_itd_t *td; local
3644 ehci_itd_t *td; local
3668 ehci_sitd_t *td; local
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dstabs.c116 resolve_nodes(tdata_t *td) argument
120 (void) iitraverse_hash(td->td_iihash, &td->td_curvgen, resolve_cbs,
121 NULL, NULL, td);
177 stabs_read(tdata_t *td, Elf *elf, char *file) argument
212 parse_init(td);
345 iidesc_add(td->td_iihash, iidescp);
354 iidesc_add(td->td_iihash, iidescp);
373 resolve_nodes(td);
375 parse_finish(td);
[all...]
/freebsd-11-stable/sys/compat/linux/
H A Dlinux_getcwd.c61 linux_getcwd(struct thread *td, struct linux_getcwd_args *args) argument
79 error = kern___getcwd(td, path, UIO_SYSSPACE, args->bufsize,
85 td->td_retval[0] = lenused;
/freebsd-11-stable/sys/powerpc/powerpc/
H A Dptrace_machdep.c45 cpu_ptrace(struct thread *td, int req, void *addr, int data) argument
51 pcb = td->td_pcb;
62 save_vec_nodrop(td);
/freebsd-11-stable/sys/i386/ibcs2/
H A Dibcs2_sysi86.c57 ibcs2_sysi86(struct thread *td, struct ibcs2_sysi86_args *args) argument
81 return (userland_sysctl(td, name, 2, 0, 0, 0,
86 td->td_retval[0] = ctob(physmem);
/freebsd-11-stable/sys/fs/pseudofs/
H A Dpseudofs.h101 struct thread *td, struct proc *p, struct pfs_node *pn, \
104 td, p, pn, sb, uio
115 struct thread *td, struct proc *p, struct pfs_node *pn, \
118 td, p, pn, vap
128 struct thread *td, struct proc *p, struct pfs_node *pn
130 td, p, pn
140 struct thread *td, struct proc *p, struct pfs_node *pn, \
143 td, p, pn, cmd, data
153 struct thread *td, struct proc *p, struct pfs_node *pn, \
157 td,
[all...]
/freebsd-11-stable/sys/i386/include/
H A Dmd_var.h69 void set_fsbase(struct thread *td, uint32_t base);
70 void set_gsbase(struct thread *td, uint32_t base);
72 union savefpu *get_pcb_user_save_td(struct thread *td);
/freebsd-11-stable/sys/ofed/include/rdma/
H A Dib.h113 struct thread *td = curthread; local
120 filp->_file == td->td_fpop &&
121 filp->_file->f_cred == td->td_ucred);
/freebsd-11-stable/sys/sparc64/include/
H A Dpcpu.h82 struct thread *td; local
84 __asm("ldx [%" __XSTRING(PCPU_REG) "], %0" : "=r" (td));
85 return (td);
/freebsd-11-stable/sys/sys/
H A Dimgact.h100 void exec_cleanup(struct thread *td, struct vmspace *);
110 int pre_execve(struct thread *td, struct vmspace **oldvmspace);
111 void post_execve(struct thread *td, int error, struct vmspace *oldvmspace);
/freebsd-11-stable/sys/amd64/include/
H A Dmd_var.h56 void amd64_syscall(struct thread *td, int traced);
71 void fpstate_drop(struct thread *td);
74 struct savefpu *get_pcb_user_save_td(struct thread *td);
/freebsd-11-stable/sys/mips/mips/
H A Dtrap.c342 cpu_fetch_syscall_args(struct thread *td) argument
349 locr0 = td->td_frame;
350 sa = &td->td_sa;
355 td->td_pcb->pcb_tpc = sa->trapframe->pc; /* Remember if restart */
369 if (sa->code == SYS___syscall && SV_PROC_FLAG(td->td_proc, SV_ILP32)) {
395 if (!SV_PROC_FLAG(td->td_proc, SV_ILP32)) {
421 if (!SV_PROC_FLAG(td->td_proc, SV_ILP32)) {
440 printf("SYSCALL #%d pid:%u\n", sa->code, td->td_proc->p_pid);
443 se = td->td_proc->p_sysent;
467 if (!SV_PROC_FLAG(td
523 struct thread *td = curthread; local
1447 struct thread *td; local
1495 struct thread *td; local
1702 struct thread *td = curthread; local
[all...]
/freebsd-11-stable/sys/vm/
H A Dvm_glue.c313 vm_thread_new(struct thread *td, int pages) argument
334 td->td_kstack_obj = ks_ce->ksobj;
335 td->td_kstack = (vm_offset_t)ks_ce;
336 td->td_kstack_pages = kstack_pages;
374 td->td_kstack_obj = ksobj;
375 td->td_kstack = ks;
380 td->td_kstack_pages = pages;
423 vm_thread_dispose(struct thread *td) argument
430 pages = td->td_kstack_pages;
431 ksobj = td
487 intr_prof_stack_use(struct thread *td, struct trapframe *frame) argument
531 vm_forkproc(struct thread *td, struct proc *p2, struct thread *td2, struct vmspace *vm2, int flags) argument
[all...]
/freebsd-11-stable/sys/arm/arm/
H A Dmp_machdep.c313 struct thread *td; local
316 td = curthread;
317 td->td_intr_nesting_level++;
318 oldframe = td->td_intr_frame;
319 td->td_intr_frame = (struct trapframe *)arg;
322 sched_preempt(td);
324 td->td_intr_frame = oldframe;
325 td->td_intr_nesting_level--;
333 struct thread *td; local
336 td
[all...]
/freebsd-11-stable/sys/i386/svr4/
H A Dsvr4_machdep.c80 svr4_setregs(td, epp, stack)
81 struct thread *td;
85 register struct pcb *pcb = td->td_pcb;
88 setregs(td, epp, stack, 0UL);
93 svr4_getcontext(td, uc, mask, oonstack)
94 struct thread *td;
99 struct proc *p = td->td_proc;
100 struct trapframe *tf = td->td_frame;
126 r[SVR4_X86_EFL] = get_vflags(td);
190 svr4_setcontext(td, u
418 register struct thread *td = curthread; local
[all...]
/freebsd-11-stable/lib/libedit/
H A Dtty.c456 #define tty__gettabs(td) ((((td)->c_oflag & TAB3) == TAB3) ? 0 : 1)
457 #define tty__geteightbit(td) (((td)->c_cflag & CSIZE) == CS8)
458 #define tty__cooked_mode(td) ((td)->c_lflag & ICANON)
611 tty__getspeed(struct termios *td) argument
615 if ((spd = cfgetispeed(td)) == 0)
616 spd = cfgetospeed(td);
732 tty__getchar(struct termios *td, unsigne argument
814 tty__setchar(struct termios *td, unsigned char *s) argument
[all...]
/freebsd-11-stable/sys/dev/ipmi/
H A Dipmi_linux.c90 ipmi_linux_ioctl(struct thread *td, struct linux_ioctl_args *args) argument
97 error = fget(td, args->fd, cap_rights_init(&rights, CAP_IOCTL), &fp);
113 error = (fo_ioctl(fp, cmd, (caddr_t)args->arg, td->td_ucred, td));
114 fdrop(fp, td);
/freebsd-11-stable/sys/amd64/amd64/
H A Dfpu.c373 fpuexit(struct thread *td) argument
622 restore_fpu_curthread(struct thread *td) argument
629 PCPU_SET(fpcurthread, td);
633 pcb = td->td_pcb;
670 struct thread *td; local
672 td = curthread;
686 if (__predict_false(PCPU_GET(fpcurthread) == td)) {
699 PCPU_GET(fpcurthread)->td_tid, td, td->td_tid);
701 restore_fpu_curthread(td);
708 fpu_activate_sw(struct thread *td) argument
723 struct thread *td; local
739 fpugetregs(struct thread *td) argument
787 fpuuserinited(struct thread *td) argument
801 fpusetxstate(struct thread *td, char *xfpustate, size_t xfpustate_size) argument
842 fpusetregs(struct thread *td, struct savefpu *addr, char *xfpustate, size_t xfpustate_size) argument
1004 fpu_kern_enter(struct thread *td, struct fpu_kern_ctx *ctx, u_int flags) argument
1057 fpu_kern_leave(struct thread *td, struct fpu_kern_ctx *ctx) argument
[all...]
/freebsd-11-stable/sys/fs/fuse/
H A Dfuse_vfsops.c131 fuse_getdevice(const char *fspec, struct thread *td, struct cdev **fdevp) argument
143 NDINIT(ndp, LOOKUP, FOLLOW, UIO_SYSSPACE, fspec, td);
172 err = mac_check_vnode_open(td->td_ucred, devvp, VREAD | VWRITE);
176 err = VOP_ACCESS(devvp, VREAD | VWRITE, td->td_ucred, td);
219 struct thread *td; local
231 td = curthread;
261 err = fuse_getdevice(fspec, td, &fdev);
293 err = fget(td, fd, cap_rights_init(&rights, CAP_READ), &fp);
298 fptmp = td
384 struct thread *td = curthread; local
[all...]
/freebsd-11-stable/contrib/tcsh/
H A Ded.term.c692 tty_getty(int fd, ttydata_t *td) argument
695 RETRY(tcgetattr(fd, &td->d_t));
698 RETRY(ioctl(fd, TCGETA, (ioctl_t) &td->d_t));
701 RETRY(ioctl(fd, TIOCGETP, (ioctl_t) &td->d_t));
704 RETRY(ioctl(fd, TIOCGETC, (ioctl_t) &td->d_tc));
707 RETRY(ioctl(fd, TIOCGPAGE, (ioctl_t) &td->d_pc));
710 RETRY(ioctl(fd, TIOCLGET, (ioctl_t) &td->d_lb));
716 RETRY(ioctl(fd, TIOCGLTC, (ioctl_t) &td->d_ltc));
723 tty_setty(int fd, ttydata_t *td) argument
726 RETRY(xtcsetattr(fd, TCSADRAIN, &td
754 tty_getchar(ttydata_t *td, unsigned char *s) argument
890 tty_setchar(ttydata_t *td, unsigned char *s) argument
1027 tty_getspeed(ttydata_t *td) argument
1050 tty_gettabs(ttydata_t *td) argument
1060 tty_geteightbit(ttydata_t *td) argument
1070 tty_cooked_mode(ttydata_t *td) argument
1134 tty_cooked_mode(void *td) argument
[all...]

Completed in 170 milliseconds

<<11121314151617181920>>