Searched refs:td (Results 51 - 75 of 1053) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/arm64/cloudabi64/
H A Dcloudabi64_sysvec.c51 cloudabi64_proc_setregs(struct thread *td, struct image_params *imgp, argument
56 exec_setregs(td, imgp, stack);
63 regs = td->td_frame;
64 regs->tf_x[0] = td->td_retval[0] =
66 (void)cpu_set_user_tls(td, TO_PTR(stack));
70 cloudabi64_fetch_syscall_args(struct thread *td) argument
76 frame = td->td_frame;
77 sa = &td->td_sa;
91 td->td_retval[0] = 0;
92 td
97 cloudabi64_set_syscall_retval(struct thread *td, int error) argument
123 cloudabi64_schedtail(struct thread *td) argument
139 cloudabi64_thread_setregs(struct thread *td, const cloudabi64_threadattr_t *attr, uint64_t tcb) argument
[all...]
/freebsd-11-stable/sys/i386/ibcs2/
H A Dibcs2_misc.c96 ibcs2_ulimit(struct thread *td, struct ibcs2_ulimit_args *uap) argument
107 td->td_retval[0] = lim_cur(td, RLIMIT_FSIZE);
108 if (td->td_retval[0] == -1)
109 td->td_retval[0] = 0x7fffffff;
112 rl.rlim_max = lim_max(td, RLIMIT_FSIZE);
114 error = kern_setrlimit(td, RLIMIT_FSIZE, &rl);
116 td->td_retval[0] = lim_cur(td, RLIMIT_FSIZE);
122 td
135 ibcs2_wait(struct thread *td, struct ibcs2_wait_args *uap) argument
184 ibcs2_execv(struct thread *td, struct ibcs2_execv_args *uap) argument
207 ibcs2_execve(struct thread *td, struct ibcs2_execve_args *uap) argument
231 ibcs2_umount(struct thread *td, struct ibcs2_umount_args *uap) argument
241 ibcs2_mount(struct thread *td, struct ibcs2_mount_args *uap) argument
312 ibcs2_getdents(struct thread *td, struct ibcs2_getdents_args *uap) argument
465 ibcs2_read(struct thread *td, struct ibcs2_read_args *uap) argument
628 ibcs2_mknod(struct thread *td, struct ibcs2_mknod_args *uap) argument
646 ibcs2_getgroups(struct thread *td, struct ibcs2_getgroups_args *uap) argument
674 ibcs2_setgroups(struct thread *td, struct ibcs2_setgroups_args *uap) argument
704 ibcs2_setuid(struct thread *td, struct ibcs2_setuid_args *uap) argument
713 ibcs2_setgid(struct thread *td, struct ibcs2_setgid_args *uap) argument
722 ibcs2_time(struct thread *td, struct ibcs2_time_args *uap) argument
736 ibcs2_pathconf(struct thread *td, struct ibcs2_pathconf_args *uap) argument
749 ibcs2_fpathconf(struct thread *td, struct ibcs2_fpathconf_args *uap) argument
756 ibcs2_sysconf(struct thread *td, struct ibcs2_sysconf_args *uap) argument
815 ibcs2_alarm(struct thread *td, struct ibcs2_alarm_args *uap) argument
833 ibcs2_times(struct thread *td, struct ibcs2_times_args *uap) argument
861 ibcs2_stime(struct thread *td, struct ibcs2_stime_args *uap) argument
879 ibcs2_utime(struct thread *td, struct ibcs2_utime_args *uap) argument
906 ibcs2_nice(struct thread *td, struct ibcs2_nice_args *uap) argument
925 ibcs2_pgrpsys(struct thread *td, struct ibcs2_pgrpsys_args *uap) argument
970 ibcs2_plock(struct thread *td, struct ibcs2_plock_args *uap) argument
1000 ibcs2_uadmin(struct thread *td, struct ibcs2_uadmin_args *uap) argument
1047 ibcs2_sysfs(struct thread *td, struct ibcs2_sysfs_args *uap) argument
1063 ibcs2_unlink(struct thread *td, struct ibcs2_unlink_args *uap) argument
1075 ibcs2_chdir(struct thread *td, struct ibcs2_chdir_args *uap) argument
1087 ibcs2_chmod(struct thread *td, struct ibcs2_chmod_args *uap) argument
1099 ibcs2_chown(struct thread *td, struct ibcs2_chown_args *uap) argument
1112 ibcs2_rmdir(struct thread *td, struct ibcs2_rmdir_args *uap) argument
1124 ibcs2_mkdir(struct thread *td, struct ibcs2_mkdir_args *uap) argument
1136 ibcs2_symlink(struct thread *td, struct ibcs2_symlink_args *uap) argument
1159 ibcs2_rename(struct thread *td, struct ibcs2_rename_args *uap) argument
1182 ibcs2_readlink(struct thread *td, struct ibcs2_readlink_args *uap) argument
[all...]
H A Dibcs2_other.c52 ibcs2_secure(struct thread *td, struct ibcs2_secure_args *uap) argument
57 td->td_retval[0] = td->td_ucred->cr_uid;
71 ibcs2_lseek(struct thread *td, struct ibcs2_lseek_args *uap) argument
79 error = sys_lseek(td, &largs);
88 spx_open(struct thread *td) argument
99 error = sys_socket(td, &sock);
102 fd = td->td_retval[0];
111 error = kern_connectat(td, AT_FDCWD, fd, (struct sockaddr *)&sun);
113 kern_close(td, f
[all...]
/freebsd-11-stable/sys/amd64/cloudabi32/
H A Dcloudabi32_sysvec.c84 cloudabi32_proc_setregs(struct thread *td, struct image_params *imgp, argument
88 ia32_setregs(td, imgp, stack);
89 (void)cpu_set_user_tls(td, TO_PTR(stack));
93 cloudabi32_fetch_syscall_args(struct thread *td) argument
99 frame = td->td_frame;
100 sa = &td->td_sa;
125 td->td_retval[0] = 0;
126 td->td_retval[1] = 0;
131 cloudabi32_set_syscall_retval(struct thread *td, int error) argument
133 struct trapframe *frame = td
164 cloudabi32_schedtail(struct thread *td) argument
178 cloudabi32_thread_setregs(struct thread *td, const cloudabi32_threadattr_t *attr, uint32_t tcb) argument
[all...]
/freebsd-11-stable/sys/amd64/cloudabi64/
H A Dcloudabi64_sysvec.c71 cloudabi64_proc_setregs(struct thread *td, struct image_params *imgp, argument
76 exec_setregs(td, imgp, stack);
83 regs = td->td_frame;
86 (void)cpu_set_user_tls(td, TO_PTR(stack));
90 cloudabi64_fetch_syscall_args(struct thread *td) argument
95 frame = td->td_frame;
96 sa = &td->td_sa;
114 td->td_retval[0] = 0;
115 td->td_retval[1] = frame->tf_rdx;
120 cloudabi64_set_syscall_retval(struct thread *td, in argument
148 cloudabi64_schedtail(struct thread *td) argument
158 cloudabi64_thread_setregs(struct thread *td, const cloudabi64_threadattr_t *attr, uint64_t tcb) argument
[all...]
/freebsd-11-stable/sys/kern/
H A Dkern_context.c63 sys_getcontext(struct thread *td, struct getcontext_args *uap) argument
72 get_mcontext(td, &uc.uc_mcontext, GET_MC_CLEAR_RET);
73 PROC_LOCK(td->td_proc);
74 uc.uc_sigmask = td->td_sigmask;
75 PROC_UNLOCK(td->td_proc);
83 sys_setcontext(struct thread *td, struct setcontext_args *uap) argument
93 ret = set_mcontext(td, &uc.uc_mcontext);
95 kern_sigprocmask(td, SIG_SETMASK, &uc.uc_sigmask,
104 sys_swapcontext(struct thread *td, struct swapcontext_args *uap) argument
113 get_mcontext(td,
[all...]
H A Dtty_info.c81 struct thread *td; local
87 FOREACH_THREAD_IN_PROC(p, td) {
88 thread_lock(td);
89 if (TD_ON_RUNQ(td) ||
90 TD_IS_RUNNING(td))
92 estcpu += sched_pctcpu(td);
93 thread_unlock(td);
101 thread_compare(struct thread *td, struct thread *td2) argument
107 if (td == NULL)
113 thread_lock(td);
218 struct thread *td, *tdpick; local
[all...]
H A Dvfs_acl.c62 static int vacl_set_acl(struct thread *td, struct vnode *vp,
64 static int vacl_get_acl(struct thread *td, struct vnode *vp,
66 static int vacl_aclcheck(struct thread *td, struct vnode *vp,
212 vacl_set_acl(struct thread *td, struct vnode *vp, acl_type_t type, argument
228 error = mac_vnode_check_setacl(td->td_ucred, vp, type, inkernelacl);
233 td->td_ucred, td);
248 vacl_get_acl(struct thread *td, struct vnode *vp, acl_type_t type, argument
257 error = mac_vnode_check_getacl(td->td_ucred, vp, type);
262 td
278 vacl_delete(struct thread *td, struct vnode *vp, acl_type_t type) argument
305 vacl_aclcheck(struct thread *td, struct vnode *vp, acl_type_t type, struct acl *aclp) argument
331 sys___acl_get_file(struct thread *td, struct __acl_get_file_args *uap) argument
349 sys___acl_get_link(struct thread *td, struct __acl_get_link_args *uap) argument
367 sys___acl_set_file(struct thread *td, struct __acl_set_file_args *uap) argument
385 sys___acl_set_link(struct thread *td, struct __acl_set_link_args *uap) argument
403 sys___acl_get_fd(struct thread *td, struct __acl_get_fd_args *uap) argument
422 sys___acl_set_fd(struct thread *td, struct __acl_set_fd_args *uap) argument
441 sys___acl_delete_file(struct thread *td, struct __acl_delete_file_args *uap) argument
459 sys___acl_delete_link(struct thread *td, struct __acl_delete_link_args *uap) argument
477 sys___acl_delete_fd(struct thread *td, struct __acl_delete_fd_args *uap) argument
496 sys___acl_aclcheck_file(struct thread *td, struct __acl_aclcheck_file_args *uap) argument
514 sys___acl_aclcheck_link(struct thread *td, struct __acl_aclcheck_link_args *uap) argument
532 sys___acl_aclcheck_fd(struct thread *td, struct __acl_aclcheck_fd_args *uap) argument
[all...]
H A Dp1003_1b.c63 syscall_not_present(struct thread *td, const char *s, struct nosys_args *uap) argument
66 td->td_name, td->td_proc->p_pid, s);
111 sys_sched_setparam(struct thread *td, struct sched_setparam_args *uap)
123 targetp = td->td_proc;
124 targettd = td;
133 e = kern_sched_setparam(td, targettd, &sched_param);
139 kern_sched_setparam(struct thread *td, struct thread *targettd,
148 error = p_cansched(td, targetp);
156 sys_sched_getparam(struct thread *td, struc
[all...]
H A Duipc_syscalls.c80 static int sendit(struct thread *td, int s, struct msghdr *mp, int flags);
81 static int recvit(struct thread *td, int s, struct msghdr *mp, void *namelenp);
83 static int accept1(struct thread *td, int s, struct sockaddr *uname,
85 static int getsockname1(struct thread *td, struct getsockname_args *uap,
87 static int getpeername1(struct thread *td, struct getpeername_args *uap,
98 getsock_cap(struct thread *td, int fd, cap_rights_t *rightsp, argument
104 error = fget_cap(td, fd, rightsp, &fp, havecapsp);
108 fdrop(fp, td);
127 sys_socket(td, uap)
128 struct thread *td;
140 kern_socket(struct thread *td, int domain, int type, int protocol) argument
203 kern_bindat(struct thread *td, int dirfd, int fd, struct sockaddr *sa) argument
272 kern_listen(struct thread *td, int s, int backlog) argument
341 kern_accept(struct thread *td, int s, struct sockaddr **name, socklen_t *namelen, struct file **fp) argument
348 kern_accept4(struct thread *td, int s, struct sockaddr **name, socklen_t *namelen, int flags, struct file **fp) argument
558 kern_connectat(struct thread *td, int dirfd, int fd, struct sockaddr *sa) argument
643 kern_socketpair(struct thread *td, int domain, int type, int protocol, int *rsv) argument
733 sys_socketpair(struct thread *td, struct socketpair_args *uap) argument
1354 kern_shutdown(struct thread *td, int s, int how) argument
1568 kern_getsockname(struct thread *td, int fd, struct sockaddr **sa, socklen_t *alen) argument
1667 kern_getpeername(struct thread *td, int fd, struct sockaddr **sa, socklen_t *alen) argument
1806 struct thread *td; local
[all...]
H A Dvfs_extattr.c58 sys_extattrctl(td, uap)
59 struct thread *td;
92 UIO_USERSPACE, uap->filename, td);
102 UIO_USERSPACE, uap->path, td);
153 * pointer "data", buffer length "nbytes", thread "td".
160 void *data, size_t nbytes, struct thread *td)
184 auio.uio_td = td;
188 error = mac_vnode_check_setextattr(td->td_ucred, vp, attrnamespace,
195 td->td_ucred, td);
159 extattr_set_vp(struct vnode *vp, int attrnamespace, const char *attrname, void *data, size_t nbytes, struct thread *td) argument
323 extattr_get_vp(struct vnode *vp, int attrnamespace, const char *attrname, void *data, size_t nbytes, struct thread *td) argument
497 extattr_delete_vp(struct vnode *vp, int attrnamespace, const char *attrname, struct thread *td) argument
631 extattr_list_vp(struct vnode *vp, int attrnamespace, void *data, size_t nbytes, struct thread *td) argument
[all...]
/freebsd-11-stable/sys/dev/cxgb/ulp/tom/
H A Dcxgb_tom.c174 free_tom_data(struct tom_data *td) argument
176 KASSERT(TAILQ_EMPTY(&td->toep_list),
179 if (td->listen_mask != 0)
180 hashdestroy(td->listen_hash, M_CXGB, td->listen_mask);
182 if (mtx_initialized(&td->toep_list_lock))
183 mtx_destroy(&td->toep_list_lock);
184 if (mtx_initialized(&td->lctx_hash_lock))
185 mtx_destroy(&td->lctx_hash_lock);
186 if (mtx_initialized(&td
201 struct tom_data *td; local
298 struct tom_data *td = sc->tom_softc; local
[all...]
/freebsd-11-stable/sys/i386/i386/
H A Dptrace_machdep.c43 cpu_ptrace_xstate(struct thread *td, int req, void *addr, int data) argument
54 npxgetregs(td);
55 savefpu = (char *)(get_pcb_user_save_td(td) + 1);
68 npxgetregs(td);
69 error = npxsetxstate(td, savefpu, data);
85 npxgetregs(td);
86 savefpu = (char *)(get_pcb_user_save_td(td));
99 error = npxsetregs(td, (union savefpu *)savefpu,
114 cpu_ptrace_xmm(struct thread *td, int req, void *addr, int data) argument
122 fpstate = &get_pcb_user_save_td(td)
151 cpu_ptrace(struct thread *td, int req, void *addr, int data) argument
[all...]
H A Dvm_machdep.c104 get_pcb_user_save_td(struct thread *td) argument
108 p = td->td_kstack + td->td_kstack_pages * PAGE_SIZE -
124 get_pcb_td(struct thread *td) argument
128 p = td->td_kstack + td->td_kstack_pages * PAGE_SIZE -
296 cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg) argument
302 td->td_pcb->pcb_esi = (int) func; /* function */
303 td->td_pcb->pcb_ebx = (int) arg; /* first arg */
307 cpu_exit(struct thread *td) argument
324 cpu_thread_exit(struct thread *td) argument
340 cpu_thread_clean(struct thread *td) argument
358 cpu_thread_swapin(struct thread *td) argument
363 cpu_thread_swapout(struct thread *td) argument
368 cpu_thread_alloc(struct thread *td) argument
385 cpu_thread_free(struct thread *td) argument
392 cpu_set_syscall_retval(struct thread *td, int error) argument
428 cpu_copy_thread(struct thread *td, struct thread *td0) argument
494 cpu_set_upcall(struct thread *td, void (*entry)(void *), void *arg, stack_t *stack) argument
525 cpu_set_user_tls(struct thread *td, void *tls_base) argument
[all...]
/freebsd-11-stable/sys/amd64/include/
H A Diodev.h41 int iodev_open(struct thread *td);
42 int iodev_close(struct thread *td);
/freebsd-11-stable/sys/powerpc/include/
H A Dreg.h82 #define fill_fpregs32(td, reg) fill_fpregs(td,(struct fpreg *)reg)
83 #define set_fpregs32(td, reg) set_fpregs(td,(struct fpreg *)reg)
84 #define fill_dbregs32(td, reg) fill_dbregs(td,(struct dbreg *)reg)
85 #define set_dbregs32(td, reg) set_dbregs(td,(struct dbreg *)reg)
/freebsd-11-stable/sys/i386/include/
H A Diodev.h41 int iodev_open(struct thread *td);
42 int iodev_close(struct thread *td);
H A Dproc.h74 struct thread *td = curthread; \
75 (total) = td->td_kstack_pages * PAGE_SIZE; \
76 (used) = (char *)td->td_kstack + \
77 td->td_kstack_pages * PAGE_SIZE - \
78 (char *)&td; \
/freebsd-11-stable/sys/fs/fuse/
H A Dfuse_io.h64 int fuse_io_flushbuf(struct vnode *vp, int waitfor, struct thread *td);
65 int fuse_io_invalbuf(struct vnode *vp, struct thread *td);
/freebsd-11-stable/sys/compat/linuxkpi/common/src/
H A Dlinux_current.c44 linux_alloc_current(struct thread *td, int flags) argument
53 MPASS(td->td_lkpi_task == NULL);
67 ts->task_thread = td;
68 ts->comm = td->td_name;
69 ts->pid = td->td_tid;
75 proc = td->td_proc;
109 td->td_lkpi_task = ts;
145 linuxkpi_thread_dtor(void *arg __unused, struct thread *td) argument
149 ts = td->td_lkpi_task;
153 td
160 struct thread *td; local
189 struct thread *td; local
221 struct thread *td; local
257 struct thread *td; local
[all...]
/freebsd-11-stable/sys/powerpc/powerpc/
H A Dexec_machdep.c119 static int grab_mcontext32(struct thread *td, mcontext32_t *, int flags);
130 struct thread *td; local
142 td = curthread;
143 p = td->td_proc;
148 tf = td->td_frame;
172 grab_mcontext32(td, &sf32.sf_uc.uc_mcontext, 0);
175 sf32.sf_uc.uc_stack.ss_sp = (uintptr_t)td->td_sigstk.ss_sp;
176 sf32.sf_uc.uc_stack.ss_size = (uint32_t)td->td_sigstk.ss_size;
177 sf32.sf_uc.uc_stack.ss_flags = (td->td_pflags & TDP_ALTSTACK)
202 grab_mcontext(td,
304 sys_sigreturn(struct thread *td, struct sigreturn_args *uap) argument
330 freebsd4_sigreturn(struct thread *td, struct freebsd4_sigreturn_args *uap) argument
357 grab_mcontext(struct thread *td, mcontext_t *mcp, int flags) argument
423 get_mcontext(struct thread *td, mcontext_t *mcp, int flags) argument
438 set_mcontext(struct thread *td, mcontext_t *mcp) argument
500 exec_setregs(struct thread *td, struct image_params *imgp, u_long stack) argument
560 ppc32_setregs(struct thread *td, struct image_params *imgp, u_long stack) argument
590 fill_regs(struct thread *td, struct reg *regs) argument
601 fill_dbregs(struct thread *td, struct dbreg *dbregs) argument
608 fill_fpregs(struct thread *td, struct fpreg *fpregs) argument
628 set_regs(struct thread *td, struct reg *regs) argument
639 set_dbregs(struct thread *td, struct dbreg *dbregs) argument
646 set_fpregs(struct thread *td, struct fpreg *fpregs) argument
664 set_regs32(struct thread *td, struct reg32 *regs) argument
682 fill_regs32(struct thread *td, struct reg32 *regs) argument
700 grab_mcontext32(struct thread *td, mcontext32_t *mcp, int flags) argument
724 get_mcontext32(struct thread *td, mcontext32_t *mcp, int flags) argument
739 set_mcontext32(struct thread *td, mcontext32_t *mcp) argument
764 freebsd32_sigreturn(struct thread *td, struct freebsd32_sigreturn_args *uap) argument
796 freebsd32_getcontext(struct thread *td, struct freebsd32_getcontext_args *uap) argument
815 freebsd32_setcontext(struct thread *td, struct freebsd32_setcontext_args *uap) argument
836 freebsd32_swapcontext(struct thread *td, struct freebsd32_swapcontext_args *uap) argument
867 cpu_set_syscall_retval(struct thread *td, int error) argument
923 cpu_thread_exit(struct thread *td) argument
928 cpu_thread_clean(struct thread *td) argument
933 cpu_thread_alloc(struct thread *td) argument
944 cpu_thread_free(struct thread *td) argument
949 cpu_set_user_tls(struct thread *td, void *tls_base) argument
960 cpu_copy_thread(struct thread *td, struct thread *td0) argument
1001 cpu_set_upcall(struct thread *td, void (*entry)(void *), void *arg, stack_t *stack) argument
[all...]
/freebsd-11-stable/sys/i386/cloudabi32/
H A Dcloudabi32_sysvec.c79 cloudabi32_proc_setregs(struct thread *td, struct image_params *imgp, argument
83 exec_setregs(td, imgp, stack);
84 (void)cpu_set_user_tls(td, TO_PTR(stack));
88 cloudabi32_fetch_syscall_args(struct thread *td) argument
94 frame = td->td_frame;
95 sa = &td->td_sa;
111 td->td_retval[0] = 0;
112 td->td_retval[1] = frame->tf_edx;
117 cloudabi32_set_syscall_retval(struct thread *td, int error) argument
119 struct trapframe *frame = td
143 cloudabi32_schedtail(struct thread *td) argument
153 cloudabi32_thread_setregs(struct thread *td, const cloudabi32_threadattr_t *attr, uint32_t tcb) argument
[all...]
/freebsd-11-stable/sys/arm/arm/
H A Dsys_machdep.c102 arm32_sync_icache(struct thread *td, void *args) argument
115 td->td_retval[0] = 0;
129 trapsignal(td, &ksi);
140 trapsignal(td, &ksi);
147 td->td_retval[0] = 0;
152 arm32_drain_writebuf(struct thread *td, void *args) argument
162 td->td_retval[0] = 0;
167 arm32_set_tp(struct thread *td, void *args) argument
173 td->td_md.md_tp = (register_t)args;
180 arm32_get_tp(struct thread *td, voi argument
192 sysarch(struct thread *td, struct sysarch_args *uap) argument
[all...]
H A Dstack_machdep.c55 stack_save_td(struct stack *st, struct thread *td) argument
59 if (TD_IS_SWAPPED(td))
61 if (TD_IS_RUNNING(td))
69 frame = (u_int32_t *)td->td_pcb->pcb_regs.sf_r11;
75 stack_save_td_running(struct stack *st, struct thread *td) argument
/freebsd-11-stable/sys/compat/linux/
H A Dlinux_emul.c65 em_find(struct thread *td) argument
69 em = td->td_emuldata;
91 linux_proc_init(struct thread *td, struct thread *newtd, int flags) argument
119 p = td->td_proc;
125 em = em_find(td);
152 struct thread *td = curthread; local
158 td->td_tid, p->p_pid, p);
163 (p->p_sysent->sv_thread_detach)(td);
214 linux_common_execve(struct thread *td, struct image_args *eargs) argument
223 p = td
264 struct thread *td; local
319 linux_thread_dtor(void *arg __unused, struct thread *td) argument
334 linux_schedtail(struct thread *td) argument
[all...]

Completed in 178 milliseconds

1234567891011>>