Searched refs:td (Results 126 - 150 of 998) sorted by relevance

1234567891011>>

/freebsd-11.0-release/sys/security/audit/
H A Daudit.h59 void audit_syscall_enter(unsigned short code, struct thread *td);
60 void audit_syscall_exit(int error, struct thread *td);
98 void audit_arg_sockaddr(struct thread *td, int dirfd, struct sockaddr *sa);
102 void audit_arg_upath1(struct thread *td, int dirfd, char *upath);
103 void audit_arg_upath2(struct thread *td, int dirfd, char *upath);
119 void audit_sysclose(struct thread *td, int fd);
125 void audit_proc_coredump(struct thread *td, char *path, int errcode);
126 void audit_thread_alloc(struct thread *td);
127 void audit_thread_free(struct thread *td);
133 #define AUDITING_TD(td) ((t
[all...]
/freebsd-11.0-release/sys/arm/arm/
H A Dtrap-v6.c171 call_trapsignal(struct thread *td, int sig, int code, vm_offset_t addr) argument
187 trapsignal(td, &ksi);
251 struct thread *td; local
253 td = curthread;
254 call_trapsignal(td, SIGTRAP, TRAP_BRKPT, far);
255 userret(td, tf);
278 struct thread *td; local
294 td = curthread;
306 td->td_frame = tf;
353 if (__predict_false((td
535 abort_fatal(struct trapframe *tf, u_int idx, u_int fsr, u_int far, u_int prefetch, struct thread *td, struct ksig *ksig) argument
603 abort_align(struct trapframe *tf, u_int idx, u_int fsr, u_int far, u_int prefetch, struct thread *td, struct ksig *ksig) argument
640 abort_icache(struct trapframe *tf, u_int idx, u_int fsr, u_int far, u_int prefetch, struct thread *td, struct ksig *ksig) argument
[all...]
/freebsd-11.0-release/sys/compat/freebsd32/
H A Dfreebsd32_capability.c52 freebsd32_cap_enter(struct thread *td, argument
64 freebsd32_cap_ioctls_limit(struct thread *td, argument
93 return (kern_cap_ioctls_limit(td, uap->fd, cmds, ncmds));
97 freebsd32_cap_ioctls_get(struct thread *td, argument
114 fdp = td->td_proc->p_fd;
138 td->td_retval[0] = INT_MAX;
140 td->td_retval[0] = fdep->fde_nioctls;
151 freebsd32_cap_enter(struct thread *td, argument
159 freebsd32_cap_ioctls_limit(struct thread *td, argument
167 freebsd32_cap_ioctls_get(struct thread *td, argument
[all...]
/freebsd-11.0-release/sys/sparc64/sparc64/
H A Dtrap.c92 static int trap_pfault(struct thread *td, struct trapframe *tf);
257 struct thread *td; local
264 td = curthread;
266 CTR4(KTR_TRAP, "trap: %p type=%s (%s) pil=%#lx", td,
273 KASSERT(td != NULL, ("trap: curthread NULL"));
274 KASSERT(td->td_proc != NULL, ("trap: curproc NULL"));
276 p = td->td_proc;
277 td->td_pticks = 0;
278 td->td_frame = tf;
280 if (td
442 trap_pfault(struct thread *td, struct trapframe *tf) argument
541 cpu_fetch_syscall_args(struct thread *td, struct syscall_args *sa) argument
598 struct thread *td; local
[all...]
/freebsd-11.0-release/sys/dev/usb/controller/
H A Davr32dci.c274 avr32dci_setup_rx(struct avr32dci_td *td) argument
282 sc = AVR32_PC2SC(td->pc);
285 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no));
287 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp);
293 td->did_stall = 0;
298 if (count != td->remainder) {
312 usbd_copy_in(td->pc, 0, &req, sizeof(req));
314 td->offset = sizeof(req);
315 td->remainder = 0;
330 AVR32_WRITE_4(sc, AVR32_EPTCLRSTA(td
349 avr32dci_data_rx(struct avr32dci_td *td) argument
448 avr32dci_data_tx(struct avr32dci_td *td) argument
523 avr32dci_data_tx_sync(struct avr32dci_td *td) argument
562 struct avr32dci_td *td; local
728 struct avr32dci_td *td; local
753 struct avr32dci_td *td; local
952 struct avr32dci_td *td; local
2011 struct avr32dci_td *td; local
[all...]
/freebsd-11.0-release/sys/compat/svr4/
H A Dsvr4_ipc.c179 svr4_semctl(td, v)
180 struct thread *td;
222 error = kern_semctl(td, uap->semid, uap->semnum, cmd, &semun,
229 td->td_retval[0] = rval;
239 return (kern_semctl(td, uap->semid, uap->semnum, cmd, &semun,
240 td->td_retval));
250 return (kern_semctl(td, uap->semid, uap->semnum, cmd, &uap->arg,
251 td->td_retval));
262 svr4_semget(td, v)
263 struct thread *td;
[all...]
H A Dsvr4_misc.c121 svr4_sys_setitimer(td, uap)
122 struct thread *td;
125 td->td_retval[0] = 0;
131 svr4_sys_wait(td, uap)
132 struct thread *td;
137 error = kern_wait(td, WAIT_ANY, &st, 0, NULL);
155 td->td_retval[1] = st;
164 svr4_sys_execv(td, uap)
165 struct thread *td;
173 CHECKALTEXIST(td, ua
[all...]
/freebsd-11.0-release/sys/compat/cloudabi/
H A Dcloudabi_mem.c62 cloudabi_sys_mem_advise(struct thread *td, argument
90 return (sys_madvise(td, &madvise_args));
94 cloudabi_sys_mem_lock(struct thread *td, struct cloudabi_sys_mem_lock_args *uap) argument
101 return (sys_mlock(td, &mlock_args));
105 cloudabi_sys_mem_map(struct thread *td, struct cloudabi_sys_mem_map_args *uap) argument
130 return (sys_mmap(td, &mmap_args));
134 cloudabi_sys_mem_protect(struct thread *td, argument
148 return (sys_mprotect(td, &mprotect_args));
152 cloudabi_sys_mem_sync(struct thread *td, struct cloudabi_sys_mem_sync_args *uap) argument
173 return (sys_msync(td,
177 cloudabi_sys_mem_unlock(struct thread *td, struct cloudabi_sys_mem_unlock_args *uap) argument
189 cloudabi_sys_mem_unmap(struct thread *td, struct cloudabi_sys_mem_unmap_args *uap) argument
[all...]
H A Dcloudabi_proc.c46 cloudabi_sys_proc_exec(struct thread *td, argument
53 error = pre_execve(td, &oldvmspace);
56 error = exec_copyin_data_fds(td, &args, uap->data, uap->datalen,
60 error = kern_execve(td, &args, NULL);
62 post_execve(td, error, oldvmspace);
67 cloudabi_sys_proc_exit(struct thread *td, argument
71 exit1(td, uap->rval, 0);
76 cloudabi_sys_proc_fork(struct thread *td, argument
88 error = fork1(td, &fr);
92 td
97 cloudabi_sys_proc_raise(struct thread *td, struct cloudabi_sys_proc_raise_args *uap) argument
[all...]
/freebsd-11.0-release/sys/amd64/amd64/
H A Dsys_machdep.c98 sysarch_ldt(struct thread *td, struct sysarch_args *uap, int uap_space) argument
119 error = amd64_get_ldt(td, largs);
124 set_pcb_flags(td->td_pcb, PCB_FULL_IRET);
131 error = amd64_set_ldt(td, largs, lp);
134 error = amd64_set_ldt(td, largs, NULL);
142 update_gdt_gsbase(struct thread *td, uint32_t base) argument
146 if (td != curthread)
148 set_pcb_flags(td->td_pcb, PCB_FULL_IRET);
157 update_gdt_fsbase(struct thread *td, uint32_t base) argument
161 if (td !
438 struct thread *td; local
499 user_ldt_free(struct thread *td) argument
735 amd64_set_ldt_data(struct thread *td, int start, int num, struct user_segment_descriptor *descs) argument
[all...]
/freebsd-11.0-release/sys/i386/i386/
H A Dvm_machdep.c125 get_pcb_user_save_td(struct thread *td) argument
129 p = td->td_kstack + td->td_kstack_pages * PAGE_SIZE -
145 get_pcb_td(struct thread *td) argument
149 p = td->td_kstack + td->td_kstack_pages * PAGE_SIZE -
327 cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg) argument
333 td->td_pcb->pcb_esi = (int) func; /* function */
334 td->td_pcb->pcb_ebx = (int) arg; /* first arg */
338 cpu_exit(struct thread *td) argument
355 cpu_thread_exit(struct thread *td) argument
373 cpu_thread_clean(struct thread *td) argument
391 cpu_thread_swapin(struct thread *td) argument
396 cpu_thread_swapout(struct thread *td) argument
401 cpu_thread_alloc(struct thread *td) argument
422 cpu_thread_free(struct thread *td) argument
429 cpu_set_syscall_retval(struct thread *td, int error) argument
465 cpu_copy_thread(struct thread *td, struct thread *td0) argument
531 cpu_set_upcall(struct thread *td, void (*entry)(void *), void *arg, stack_t *stack) argument
559 cpu_set_user_tls(struct thread *td, void *tls_base) argument
[all...]
/freebsd-11.0-release/sys/powerpc/powerpc/
H A Dtrap.c87 static int fix_unaligned(struct thread *td, struct trapframe *frame);
158 struct thread *td; local
169 td = curthread;
170 p = td->td_proc;
176 CTR3(KTR_TRAP, "trap: %s type=%s (%s)", td->td_name,
197 td->td_pticks = 0;
198 td->td_frame = frame;
199 if (td->td_cowgen != p->p_cowgen)
200 thread_cow_update(td);
233 KASSERT((td
464 struct thread *td; local
484 cpu_fetch_syscall_args(struct thread *td, struct syscall_args *sa) argument
574 struct thread *td; local
678 struct thread *td; local
750 fix_unaligned(struct thread *td, struct trapframe *frame) argument
[all...]
H A Dinterrupt.c79 struct thread *td; local
83 td = curthread;
96 atomic_add_int(&td->td_intr_nesting_level, 1);
97 oldframe = td->td_intr_frame;
98 td->td_intr_frame = framep;
100 td->td_intr_frame = oldframe;
101 atomic_subtract_int(&td->td_intr_nesting_level, 1);
/freebsd-11.0-release/sys/cddl/compat/opensolaris/sys/
H A Dproc.h69 kthread_t *td = NULL; local
80 error = kproc_kthread_add(proc, arg, &zfsproc, &td, RFSTOPPED,
83 thread_lock(td);
84 sched_prio(td, pri);
85 sched_add(td, SRQ_BORING);
86 thread_unlock(td);
88 return (td);
/freebsd-11.0-release/sys/kern/
H A Dkern_condvar.c64 #define CV_ASSERT(cvp, lock, td) do { \
65 KASSERT((td) != NULL, ("%s: td NULL", __func__)); \
66 KASSERT(TD_IS_RUNNING(td), ("%s: not TDS_RUNNING", __func__)); \
111 struct thread *td; local
114 td = curthread;
117 if (KTRPOINT(td, KTR_CSW))
120 CV_ASSERT(cvp, lock, td);
147 if (KTRPOINT(td, KTR_CSW))
165 struct thread *td; local
215 struct thread *td; local
276 struct thread *td; local
338 struct thread *td; local
[all...]
H A Dkern_sig.c105 static int killpg1(struct thread *td, int sig, int pgid, int all,
107 static int issignal(struct thread *td);
560 * Determine signal that should be delivered to thread td, the current
565 cursig(struct thread *td) argument
567 PROC_LOCK_ASSERT(td->td_proc, MA_OWNED);
568 mtx_assert(&td->td_proc->p_sigacts->ps_mtx, MA_OWNED);
569 THREAD_LOCK_ASSERT(td, MA_NOTOWNED);
570 return (SIGPENDING(td) ? issignal(td) : 0);
579 signotify(struct thread *td) argument
597 struct thread *td = curthread; local
651 kern_sigaction(struct thread *td, int sig, const struct sigaction *act, struct sigaction *oact, int flags) argument
958 struct thread *td; local
1016 kern_sigprocmask(struct thread *td, int how, sigset_t *set, sigset_t *oset, int flags) argument
1135 sys_sigwait(struct thread *td, struct sigwait_args *uap) argument
1163 sys_sigtimedwait(struct thread *td, struct sigtimedwait_args *uap) argument
1197 sys_sigwaitinfo(struct thread *td, struct sigwaitinfo_args *uap) argument
1220 kern_sigtimedwait(struct thread *td, sigset_t waitset, ksiginfo_t *ksi, struct timespec *timeout) argument
1486 kern_sigsuspend(struct thread *td, sigset_t mask) argument
1617 kern_sigaltstack(struct thread *td, stack_t *ss, stack_t *oss) argument
1653 killpg1(struct thread *td, int sig, int pgid, int all, ksiginfo_t *ksi) argument
1730 sys_kill(struct thread *td, struct kill_args *uap) argument
1814 okillpg(struct thread *td, struct okillpg_args *uap) argument
1840 sys_sigqueue(struct thread *td, struct sigqueue_args *uap) argument
1923 postsig_done(int sig, struct thread *td, struct sigacts *ps) argument
1945 trapsignal(struct thread *td, ksiginfo_t *ksi) argument
1996 struct thread *td, *signal_td; local
2057 struct thread *td; local
2072 tdsignal(struct thread *td, int sig) argument
2083 tdksignal(struct thread *td, int sig, ksiginfo_t *ksi) argument
2090 tdsendsignal(struct proc *p, struct thread *td, int sig, ksiginfo_t *ksi) argument
2378 tdsigwakeup(struct thread *td, int sig, sig_t action, int intrval) argument
2459 sig_suspend_threads(struct thread *td, struct proc *p, int sending) argument
2503 ptracestop(struct thread *td, int sig) argument
2560 struct thread *td; local
2586 tdsigcleanup(struct thread *td) argument
2634 struct thread *td; local
2676 struct thread *td; local
2704 issignal(struct thread *td) argument
2919 struct thread *td = curthread; local
3218 corefile_open(const char *comm, uid_t uid, pid_t pid, struct thread *td, int compress, struct vnode **vpp, char **namep) argument
3362 coredump(struct thread *td) argument
[all...]
H A Dkern_procctl.c47 protect_setchild(struct thread *td, struct proc *p, int flags) argument
51 if (p->p_flag & P_SYSTEM || p_cansched(td, p) != 0)
65 protect_setchildren(struct thread *td, struct proc *top, int flags) argument
74 ret |= protect_setchild(td, p, flags);
99 protect_set(struct thread *td, struct proc *p, int flags) argument
114 error = priv_check(td, PRIV_VM_MADV_PROTECT);
119 ret = protect_setchildren(td, p, flags);
121 ret = protect_setchild(td, p, flags);
128 reap_acquire(struct thread *td, struct proc *p) argument
145 reap_release(struct thread *td, struc argument
160 reap_status(struct thread *td, struct proc *p, struct procctl_reaper_status *rs) argument
195 reap_getpids(struct thread *td, struct proc *p, struct procctl_reaper_pids *rp) argument
235 reap_kill(struct thread *td, struct proc *p, struct procctl_reaper_kill *rk) argument
284 trace_ctl(struct thread *td, struct proc *p, int state) argument
324 trace_status(struct thread *td, struct proc *p, int *data) argument
349 sys_procctl(struct thread *td, struct procctl_args *uap) argument
414 kern_procctl_single(struct thread *td, struct proc *p, int com, void *data) argument
441 kern_procctl(struct thread *td, idtype_t idtype, id_t id, int com, void *data) argument
[all...]
H A Dksched.c106 getscheduler(struct ksched *ksched, struct thread *td, int *policy) argument
112 pri_to_rtp(td, &rtp);
129 struct thread *td, const struct sched_param *param)
133 e = getscheduler(ksched, td, &policy);
135 e = ksched_setscheduler(ksched, td, policy, param);
140 ksched_getparam(struct ksched *ksched, struct thread *td, argument
145 pri_to_rtp(td, &rtp);
170 ksched_setscheduler(struct ksched *ksched, struct thread *td, int policy, argument
185 rtp_to_pri(&rtp, td);
195 rtp_to_pri(&rtp, td);
128 ksched_setparam(struct ksched *ksched, struct thread *td, const struct sched_param *param) argument
208 ksched_getscheduler(struct ksched *ksched, struct thread *td, int *policy) argument
266 ksched_rr_get_interval(struct ksched *ksched, struct thread *td, struct timespec *timespec) argument
[all...]
/freebsd-11.0-release/sys/i386/ibcs2/
H A Dibcs2_stat.c107 ibcs2_statfs(td, uap)
108 struct thread *td;
115 CHECKALTEXIST(td, uap->path, &path);
116 error = kern_statfs(td, path, UIO_SYSSPACE, &sf);
124 ibcs2_fstatfs(td, uap)
125 struct thread *td;
131 error = kern_fstatfs(td, uap->fd, &sf);
138 ibcs2_stat(td, uap)
139 struct thread *td;
147 CHECKALTEXIST(td, ua
[all...]
H A Dibcs2_xenix.c64 ibcs2_xenix(struct thread *td, struct ibcs2_xenix_args *uap) argument
66 struct trapframe *tf = td->td_frame;
75 error = ((*callp->sy_call)(td, (void *)uap));
82 xenix_rdchk(td, uap)
83 struct thread *td;
90 error = kern_ioctl(td, uap->fd, FIONREAD, (caddr_t)&data);
93 td->td_retval[0] = data ? 1 : 0;
98 xenix_chsize(td, uap)
99 struct thread *td;
107 return sys_ftruncate(td,
136 xenix_nap(struct thread *td, struct xenix_nap_args *uap) argument
148 xenix_utsname(struct thread *td, struct xenix_utsname_args *uap) argument
191 xenix_scoinfo(struct thread *td, struct xenix_scoinfo_args *uap) argument
199 xenix_eaccess(struct thread *td, struct xenix_eaccess_args *uap) argument
[all...]
/freebsd-11.0-release/sys/amd64/ia32/
H A Dia32_signal.c92 ia32_get_fpcontext(struct thread *td, struct ia32_mcontext *mcp, argument
103 mcp->mc_ownedfp = fpugetregs(td);
104 bcopy(get_pcb_user_save_td(td), &mcp->mc_fpstate[0],
117 bcopy(get_pcb_user_save_td(td) + 1, xfpusave, len);
121 ia32_set_fpcontext(struct thread *td, struct ia32_mcontext *mcp, argument
132 fpstate_drop(td);
136 error = fpusetregs(td, (struct savefpu *)&mcp->mc_fpstate,
147 ia32_get_mcontext(struct thread *td, struct ia32_mcontext *mcp, int flags) argument
152 pcb = td->td_pcb;
153 tp = td
200 ia32_set_mcontext(struct thread *td, struct ia32_mcontext *mcp) argument
255 freebsd32_getcontext(struct thread *td, struct freebsd32_getcontext_args *uap) argument
274 freebsd32_setcontext(struct thread *td, struct freebsd32_setcontext_args *uap) argument
295 freebsd32_swapcontext(struct thread *td, struct freebsd32_swapcontext_args *uap) argument
339 struct thread *td; local
438 struct thread *td; local
549 struct thread *td; local
697 ofreebsd32_sigreturn(struct thread *td, struct ofreebsd32_sigreturn_args *uap) argument
936 ia32_setregs(struct thread *td, struct image_params *imgp, u_long stack) argument
[all...]
/freebsd-11.0-release/sys/fs/unionfs/
H A Dunion.h109 int unionfs_nodeget(struct mount *mp, struct vnode *uppervp, struct vnode *lowervp, struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, struct thread *td);
110 void unionfs_noderem(struct vnode *vp, struct thread *td);
111 void unionfs_get_node_status(struct unionfs_node *unp, struct thread *td, struct unionfs_node_status **unspp);
114 int unionfs_check_rmdir(struct vnode *vp, struct ucred *cred, struct thread *td);
115 int unionfs_copyfile(struct unionfs_node *unp, int docopy, struct ucred *cred, struct thread *td);
116 void unionfs_create_uppervattr_core(struct unionfs_mount *ump, struct vattr *lva, struct vattr *uva, struct thread *td);
117 int unionfs_create_uppervattr(struct unionfs_mount *ump, struct vnode *lvp, struct vattr *uva, struct ucred *cred, struct thread *td);
118 int unionfs_mkshadowdir(struct unionfs_mount *ump, struct vnode *duvp, struct unionfs_node *unp, struct componentname *cnp, struct thread *td);
119 int unionfs_mkwhiteout(struct vnode *dvp, struct componentname *cnp, struct thread *td, char *path);
120 int unionfs_relookup(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, struct componentname *cn, struct thread *td, cha
[all...]
/freebsd-11.0-release/sys/ufs/ufs/
H A Dufs_vfsops.c100 struct thread *td;
103 td = curthread;
110 id = td->td_ucred->cr_ruid;
114 id = td->td_ucred->cr_rgid;
131 error = quotaon(td, mp, type, arg);
135 error = quotaoff(td, mp, type);
139 error = setquota32(td, mp, id, type, arg);
143 error = setuse32(td, mp, id, type, arg);
147 error = getquota32(td, mp, id, type, arg);
151 error = setquota(td, m
[all...]
/freebsd-11.0-release/sys/riscv/riscv/
H A Dmachdep.c162 fill_regs(struct thread *td, struct reg *regs) argument
166 frame = td->td_frame;
182 set_regs(struct thread *td, struct reg *regs) argument
186 frame = td->td_frame;
202 fill_fpregs(struct thread *td, struct fpreg *regs) argument
211 set_fpregs(struct thread *td, struct fpreg *regs) argument
219 fill_dbregs(struct thread *td, struct dbreg *regs) argument
226 set_dbregs(struct thread *td, struct dbreg *regs) argument
233 ptrace_set_pc(struct thread *td, u_long addr) argument
241 ptrace_single_step(struct thread *td) argument
249 ptrace_clear_single_step(struct thread *td) argument
257 exec_setregs(struct thread *td, struct image_params *imgp, u_long stack) argument
291 get_mcontext(struct thread *td, mcontext_t *mcp, int clear_ret) argument
315 set_mcontext(struct thread *td, mcontext_t *mcp) argument
336 get_fpcontext(struct thread *td, mcontext_t *mcp) argument
342 set_fpcontext(struct thread *td, mcontext_t *mcp) argument
397 struct thread *td; local
411 struct thread *td; local
429 sys_sigreturn(struct thread *td, struct sigreturn_args *uap) argument
490 struct thread *td; local
[all...]
/freebsd-11.0-release/sys/dev/tdfx/
H A Dtdfx_linux.c46 linux_ioctl_tdfx(struct thread *td, struct linux_ioctl_args* args) argument
58 error = fget(td, args->fd, cap_rights_init(&rights, CAP_IOCTL), &fp);
63 error = fo_ioctl(fp, cmd, (caddr_t)&d_pio, td->td_ucred, td);
64 fdrop(fp, td);

Completed in 153 milliseconds

1234567891011>>