/freebsd/sys/powerpc/powerpc/ |
H A D | exec_machdep.c | 155 struct thread *td; in sendsig() local 336 sys_sigreturn(struct thread *td, struct sigreturn_args *uap) in sys_sigreturn() 369 freebsd4_sigreturn(struct thread *td, struct freebsd4_sigreturn_args *uap) in freebsd4_sigreturn() 396 grab_mcontext(struct thread *td, mcontext_t *mcp, int flags) in grab_mcontext() 464 get_mcontext(struct thread *td, mcontext_t *mcp, int flags) in get_mcontext() 479 set_mcontext(struct thread *td, mcontext_t *mcp) in set_mcontext() 567 cleanup_power_extras(struct thread *td) in cleanup_power_extras() 596 cpu_update_pcb(struct thread *td) in cpu_update_pcb() 657 exec_setregs(struct thread *td, struct image_params *imgp, uintptr_t stack) in exec_setregs() 703 ppc32_setregs(struct thread *td, struct image_params *imgp, uintptr_t stack) in ppc32_setregs() [all …]
|
/freebsd/sys/security/audit/ |
H A D | audit_syscalls.c | 68 sys_audit(struct thread *td, struct audit_args *uap) in sys_audit() 161 sys_auditon(struct thread *td, struct auditon_args *uap) in sys_auditon() 591 sys_getauid(struct thread *td, struct getauid_args *uap) in sys_getauid() 606 sys_setauid(struct thread *td, struct setauid_args *uap) in sys_setauid() 646 sys_getaudit(struct thread *td, struct getaudit_args *uap) in sys_getaudit() 671 sys_setaudit(struct thread *td, struct setaudit_args *uap) in sys_setaudit() 714 sys_getaudit_addr(struct thread *td, struct getaudit_addr_args *uap) in sys_getaudit_addr() 731 sys_setaudit_addr(struct thread *td, struct setaudit_addr_args *uap) in sys_setaudit_addr() 774 sys_auditctl(struct thread *td, struct auditctl_args *uap) in sys_auditctl() 841 sys_audit(struct thread *td, struct audit_args *uap) in sys_audit() [all …]
|
/freebsd/sys/kern/ |
H A D | sched_4bsd.c | 125 #define THREAD_CAN_SCHED(td, cpu) \ argument 311 maybe_resched(struct thread *td) in maybe_resched() 326 maybe_preempt(struct thread *td) in maybe_preempt() 472 struct thread *td; in schedcpu() local 585 updatepri(struct thread *td) in updatepri() 610 resetpriority(struct thread *td) in resetpriority() 629 resetpriority_thread(struct thread *td) in resetpriority_thread() 732 sched_clock_tick(struct thread *td) in sched_clock_tick() 777 sched_clock(struct thread *td, int cnt) in sched_clock() 788 sched_exit(struct proc *p, struct thread *td) in sched_exit() [all …]
|
H A D | uipc_syscalls.c | 88 getsock_cap(struct thread *td, int fd, const cap_rights_t *rightsp, in getsock_cap() 108 getsock(struct thread *td, int fd, const cap_rights_t *rightsp, in getsock() 133 sys_socket(struct thread *td, struct socket_args *uap) in sys_socket() 140 kern_socket(struct thread *td, int domain, int type, int protocol) in kern_socket() 186 sys_bind(struct thread *td, struct bind_args *uap) in sys_bind() 200 kern_bindat(struct thread *td, int dirfd, int fd, struct sockaddr *sa) in kern_bindat() 241 sys_bindat(struct thread *td, struct bindat_args *uap) in sys_bindat() 255 sys_listen(struct thread *td, struct listen_args *uap) in sys_listen() 262 kern_listen(struct thread *td, int s, int backlog) in kern_listen() 286 accept1(struct thread *td, int s, struct sockaddr *uname, socklen_t *anamelen, in accept1() [all …]
|
H A D | kern_thread.c | 310 tidbatch_add(struct tidbatch *tb, struct thread *td) in tidbatch_add() 388 struct thread *td; in thread_ctor() local 418 struct thread *td; in thread_dtor() local 460 struct thread *td; in thread_init() local 480 struct thread *td; in thread_fini() local 499 proc_linkup0(struct proc *p, struct thread *td) in proc_linkup0() 506 proc_linkup(struct proc *p, struct thread *td) in proc_linkup() 521 ast_suspend(struct thread *td, int tda __unused) in ast_suspend() 601 thread_zombie(struct thread *td) in thread_zombie() 621 thread_stash(struct thread *td) in thread_stash() [all …]
|
H A D | vfs_acl.c | 224 vacl_set_acl(struct thread *td, struct vnode *vp, acl_type_t type, in vacl_set_acl() 262 vacl_get_acl(struct thread *td, struct vnode *vp, acl_type_t type, in vacl_get_acl() 294 vacl_delete(struct thread *td, struct vnode *vp, acl_type_t type) in vacl_delete() 325 vacl_aclcheck(struct thread *td, struct vnode *vp, acl_type_t type, in vacl_aclcheck() 351 sys___acl_get_file(struct thread *td, struct __acl_get_file_args *uap) in sys___acl_get_file() 362 sys___acl_get_link(struct thread *td, struct __acl_get_link_args *uap) in sys___acl_get_link() 370 kern___acl_get_path(struct thread *td, const char *path, acl_type_t type, in kern___acl_get_path() 390 sys___acl_set_file(struct thread *td, struct __acl_set_file_args *uap) in sys___acl_set_file() 401 sys___acl_set_link(struct thread *td, struct __acl_set_link_args *uap) in sys___acl_set_link() 409 kern___acl_set_path(struct thread *td, const char *path, in kern___acl_set_path() [all …]
|
H A D | kern_thr.c | 110 thr_create_initthr(struct thread *td, void *thunk) in thr_create_initthr() 123 sys_thr_create(struct thread *td, struct thr_create_args *uap) in sys_thr_create() 136 sys_thr_new(struct thread *td, struct thr_new_args *uap) in sys_thr_new() 151 thr_new_initthr(struct thread *td, void *thunk) in thr_new_initthr() 183 kern_thr_new(struct thread *td, struct thr_param *param) in kern_thr_new() 206 thread_create(struct thread *td, struct rtprio *rtp, in thread_create() 315 sys_thr_self(struct thread *td, struct thr_self_args *uap) in sys_thr_self() 327 sys_thr_exit(struct thread *td, struct thr_exit_args *uap) in sys_thr_exit() 343 kern_thr_exit(struct thread *td) in kern_thr_exit() 406 sys_thr_kill(struct thread *td, struct thr_kill_args *uap) in sys_thr_kill() [all …]
|
H A D | kern_procctl.c | 55 protect_setchild(struct thread *td, struct proc *p, int flags) in protect_setchild() 73 protect_setchildren(struct thread *td, struct proc *top, int flags) in protect_setchildren() 107 protect_set(struct thread *td, struct proc *p, void *data) in protect_set() 137 reap_acquire(struct thread *td, struct proc *p, void *data __unused) in reap_acquire() 154 reap_release(struct thread *td, struct proc *p, void *data __unused) in reap_release() 169 reap_status(struct thread *td, struct proc *p, void *data) in reap_status() 204 reap_getpids(struct thread *td, struct proc *p, void *data) in reap_getpids() 355 reap_kill_children(struct thread *td, struct proc *reaper, in reap_kill_children() 385 reap_kill_subtree_once(struct thread *td, struct proc *p, struct proc *reaper, in reap_kill_subtree_once() 490 reap_kill_subtree(struct thread *td, struct proc *p, struct proc *reaper, in reap_kill_subtree() [all …]
|
H A D | subr_trap.c | 86 userret(struct thread *td, struct trapframe *frame) in userret() 197 ast_prep(struct thread *td, int tda __unused) in ast_prep() 257 ast_sched_locked(struct thread *td, int tda) in ast_sched_locked() 266 ast_unsched_locked(struct thread *td, int tda) in ast_unsched_locked() 275 ast_sched(struct thread *td, int tda) in ast_sched() 283 ast_sched_mask(struct thread *td, int ast) in ast_sched_mask() 291 ast_handler_calc_tdp_run(struct thread *td, const struct ast_entry *ae) in ast_handler_calc_tdp_run() 301 ast_handler(struct thread *td, struct trapframe *framep, bool dtor) in ast_handler() 372 struct thread *td; in ast() local 380 ast_kclear(struct thread *td) in ast_kclear()
|
H A D | vfs_syscalls.c | 132 kern_sync(struct thread *td) in kern_sync() 169 sys_sync(struct thread *td, struct sync_args *uap) in sys_sync() 187 sys_quotactl(struct thread *td, struct quotactl_args *uap) in sys_quotactl() 273 kern_do_statfs(struct thread *td, struct mount *mp, struct statfs *buf) in kern_do_statfs() 310 sys_statfs(struct thread *td, struct statfs_args *uap) in sys_statfs() 324 kern_statfs(struct thread *td, const char *path, enum uio_seg pathseg, in kern_statfs() 351 sys_fstatfs(struct thread *td, struct fstatfs_args *uap) in sys_fstatfs() 365 kern_fstatfs(struct thread *td, int fd, struct statfs *buf) in kern_fstatfs() 400 sys_getfsstat(struct thread *td, struct getfsstat_args *uap) in sys_getfsstat() 420 kern_getfsstat(struct thread *td, struct statfs **buf, size_t bufsize, in kern_getfsstat() [all …]
|
/freebsd/sys/compat/linux/ |
H A D | linux_file.c | 101 linux_creat(struct thread *td, struct linux_creat_args *args) in linux_creat() 158 linux_common_open(struct thread *td, int dirfd, const char *path, int l_flags, in linux_common_open() 209 linux_openat(struct thread *td, struct linux_openat_args *args) in linux_openat() 220 linux_open(struct thread *td, struct linux_open_args *args) in linux_open() 229 linux_name_to_handle_at(struct thread *td, in linux_name_to_handle_at() 296 linux_open_by_handle_at(struct thread *td, in linux_open_by_handle_at() 315 linux_lseek(struct thread *td, struct linux_lseek_args *args) in linux_lseek() 323 linux_llseek(struct thread *td, struct linux_llseek_args *args) in linux_llseek() 356 linux_getdents_error(struct thread *td, int fd, int err) in linux_getdents_error() 403 linux_getdents(struct thread *td, struct linux_getdents_args *args) in linux_getdents() [all …]
|
H A D | linux_uid16.c | 70 linux_chown16(struct thread *td, struct linux_chown16_args *args) in linux_chown16() 78 linux_lchown16(struct thread *td, struct linux_lchown16_args *args) in linux_lchown16() 86 linux_setgroups16(struct thread *td, struct linux_setgroups16_args *args) in linux_setgroups16() 149 linux_getgroups16(struct thread *td, struct linux_getgroups16_args *args) in linux_getgroups16() 195 linux_getgid16(struct thread *td, struct linux_getgid16_args *args) in linux_getgid16() 204 linux_getuid16(struct thread *td, struct linux_getuid16_args *args) in linux_getuid16() 213 linux_getegid16(struct thread *td, struct linux_getegid16_args *args) in linux_getegid16() 224 linux_geteuid16(struct thread *td, struct linux_geteuid16_args *args) in linux_geteuid16() 235 linux_setgid16(struct thread *td, struct linux_setgid16_args *args) in linux_setgid16() 247 linux_setuid16(struct thread *td, struct linux_setuid16_args *args) in linux_setuid16() [all …]
|
H A D | linux_misc.c | 137 linux_sysinfo(struct thread *td, struct linux_sysinfo_args *args) in linux_sysinfo() 186 linux_alarm(struct thread *td, struct linux_alarm_args *args) in linux_alarm() 218 linux_brk(struct thread *td, struct linux_brk_args *args) in linux_brk() 235 linux_select(struct thread *td, struct linux_select_args *args) in linux_select() 302 linux_mremap(struct thread *td, struct linux_mremap_args *args) in linux_mremap() 345 linux_msync(struct thread *td, struct linux_msync_args *args) in linux_msync() 353 linux_mprotect(struct thread *td, struct linux_mprotect_args *uap) in linux_mprotect() 361 linux_madvise(struct thread *td, struct linux_madvise_args *uap) in linux_madvise() 369 linux_mmap2(struct thread *td, struct linux_mmap2_args *uap) in linux_mmap2() 387 linux_time(struct thread *td, struct linux_time_args *args) in linux_time() [all …]
|
H A D | linux_signal.c | 165 linux_do_sigaction(struct thread *td, int linux_sig, l_sigaction_t *linux_nsa, in linux_do_sigaction() 206 linux_sigaltstack(struct thread *td, struct linux_sigaltstack_args *uap) in linux_sigaltstack() 238 linux_signal(struct thread *td, struct linux_signal_args *args) in linux_signal() 255 linux_rt_sigaction(struct thread *td, struct linux_rt_sigaction_args *args) in linux_rt_sigaction() 280 linux_do_sigprocmask(struct thread *td, int how, sigset_t *new, in linux_do_sigprocmask() 310 linux_sigprocmask(struct thread *td, struct linux_sigprocmask_args *args) in linux_sigprocmask() 348 linux_rt_sigprocmask(struct thread *td, struct linux_rt_sigprocmask_args *args) in linux_rt_sigprocmask() 375 linux_sgetmask(struct thread *td, struct linux_sgetmask_args *args) in linux_sgetmask() 392 linux_ssetmask(struct thread *td, struct linux_ssetmask_args *args) in linux_ssetmask() 416 linux_sigpending(struct thread *td, struct linux_sigpending_args *args) in linux_sigpending() [all …]
|
H A D | linux_emul.c | 62 em_find(struct thread *td) in em_find() 94 linux_set_default_openfiles(struct thread *td, struct proc *p) in linux_set_default_openfiles() 117 linux_set_default_stacksize(struct thread *td, struct proc *p) in linux_set_default_stacksize() 137 linux_proc_init(struct thread *td, struct thread *newtd, bool init_thread) in linux_proc_init() 193 struct thread *td = curthread; in linux_on_exit() local 212 linux_common_execve(struct thread *td, struct image_args *eargs) in linux_common_execve() 259 struct thread *td; in linux_on_exec() local 317 linux_thread_dtor(struct thread *td) in linux_thread_dtor() 332 linux_schedtail(struct thread *td) in linux_schedtail()
|
/freebsd/sys/amd64/amd64/ |
H A D | vm_machdep.c | 87 set_top_of_stack_td(struct thread *td) in set_top_of_stack_td() 94 get_pcb_user_save_td(struct thread *td) in get_pcb_user_save_td() 104 get_pcb_td(struct thread *td) in get_pcb_td() 113 struct thread *td; in get_pcb_user_save_pcb() local 305 x86_set_fork_retval(struct thread *td) in x86_set_fork_retval() 321 cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg) in cpu_fork_kthread_handler() 332 cpu_exit(struct thread *td) in cpu_exit() 343 cpu_thread_exit(struct thread *td) in cpu_thread_exit() 362 cpu_thread_clean(struct thread *td) in cpu_thread_clean() 380 cpu_thread_alloc(struct thread *td) in cpu_thread_alloc() [all …]
|
/freebsd/sys/arm64/arm64/ |
H A D | exec_machdep.c | 70 fill_regs(struct thread *td, struct reg *regs) in fill_regs() 96 set_regs(struct thread *td, struct reg *regs) in set_regs() 147 fill_fpregs(struct thread *td, struct fpreg *regs) in fill_fpregs() 175 set_fpregs(struct thread *td, struct fpreg *regs) in set_fpregs() 191 fill_dbregs(struct thread *td, struct dbreg *regs) in fill_dbregs() 244 set_dbregs(struct thread *td, struct dbreg *regs) in set_dbregs() 341 fill_regs32(struct thread *td, struct reg32 *regs) in fill_regs32() 359 set_regs32(struct thread *td, struct reg32 *regs) in set_regs32() 379 fill_fpregs32(struct thread *td, struct fpreg32 *regs) in fill_fpregs32() 387 set_fpregs32(struct thread *td, struct fpreg32 *regs) in set_fpregs32() [all …]
|
H A D | vm_machdep.c | 141 cpu_set_syscall_retval(struct thread *td, int error) in cpu_set_syscall_retval() 175 cpu_copy_thread(struct thread *td, struct thread *td0) in cpu_copy_thread() 206 cpu_set_upcall(struct thread *td, void (*entry)(void *), void *arg, in cpu_set_upcall() 228 cpu_set_user_tls(struct thread *td, void *tls_base, int thr_flags __unused) in cpu_set_user_tls() 254 cpu_thread_exit(struct thread *td) in cpu_thread_exit() 259 cpu_thread_alloc(struct thread *td) in cpu_thread_alloc() 270 cpu_thread_free(struct thread *td) in cpu_thread_free() 275 cpu_thread_clean(struct thread *td) in cpu_thread_clean() 286 cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg) in cpu_fork_kthread_handler() 294 cpu_update_pcb(struct thread *td) in cpu_update_pcb() [all …]
|
H A D | ptrace_machdep.c | 52 cpu_ptrace(struct thread *td, int req, void *arg, int data) in cpu_ptrace() 82 get_arm_vfp(struct regset *rs, struct thread *td, void *buf, size_t *sizep) in get_arm_vfp() 94 set_arm_vfp(struct regset *rs, struct thread *td, void *buf, in set_arm_vfp() 113 get_arm64_tls(struct regset *rs, struct thread *td, void *buf, in get_arm64_tls() 136 get_arm_tls(struct regset *rs, struct thread *td, void *buf, in get_arm_tls() 161 ptrace_set_pc(struct thread *td, u_long addr) in ptrace_set_pc() 169 ptrace_single_step(struct thread *td) in ptrace_single_step() 181 ptrace_clear_single_step(struct thread *td) in ptrace_clear_single_step()
|
/freebsd/sys/security/mac/ |
H A D | mac_syscalls.c | 164 sys___mac_get_pid(struct thread *td, struct __mac_get_pid_args *uap) in sys___mac_get_pid() 204 sys___mac_get_proc(struct thread *td, struct __mac_get_proc_args *uap) in sys___mac_get_proc() 234 mac_set_proc_prepare(struct thread *const td, const struct mac *const mac, in mac_set_proc_prepare() 268 mac_set_proc_core(struct thread *const td, struct ucred *const newcred, in mac_set_proc_core() 294 mac_set_proc_finish(struct thread *const td, bool proc_label_set, in mac_set_proc_finish() 307 sys___mac_set_proc(struct thread *td, struct __mac_set_proc_args *uap) in sys___mac_set_proc() 349 sys___mac_get_fd(struct thread *td, struct __mac_get_fd_args *uap) in sys___mac_get_fd() 432 sys___mac_get_file(struct thread *td, struct __mac_get_file_args *uap) in sys___mac_get_file() 439 sys___mac_get_link(struct thread *td, struct __mac_get_link_args *uap) in sys___mac_get_link() 446 kern___mac_get_path(struct thread *td, const char *path_p, struct mac *mac_p, in kern___mac_get_path() [all …]
|
/freebsd/sys/riscv/riscv/ |
H A D | vm_machdep.c | 61 cpu_set_pcb_frame(struct thread *td) in cpu_set_pcb_frame() 134 cpu_set_syscall_retval(struct thread *td, int error) in cpu_set_syscall_retval() 168 cpu_copy_thread(struct thread *td, struct thread *td0) in cpu_copy_thread() 189 cpu_set_upcall(struct thread *td, void (*entry)(void *), void *arg, in cpu_set_upcall() 203 cpu_set_user_tls(struct thread *td, void *tls_base, int thr_flags __unused) in cpu_set_user_tls() 219 cpu_thread_exit(struct thread *td) in cpu_thread_exit() 224 cpu_thread_alloc(struct thread *td) in cpu_thread_alloc() 230 cpu_thread_free(struct thread *td) in cpu_thread_free() 235 cpu_thread_clean(struct thread *td) in cpu_thread_clean() 246 cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg) in cpu_fork_kthread_handler() [all …]
|
H A D | exec_machdep.c | 79 fill_regs(struct thread *td, struct reg *regs) in fill_regs() 99 set_regs(struct thread *td, struct reg *regs) in set_regs() 118 fill_fpregs(struct thread *td, struct fpreg *regs) in fill_fpregs() 141 set_fpregs(struct thread *td, struct fpreg *regs) in set_fpregs() 159 fill_dbregs(struct thread *td, struct dbreg *regs) in fill_dbregs() 166 set_dbregs(struct thread *td, struct dbreg *regs) in set_dbregs() 173 exec_setregs(struct thread *td, struct image_params *imgp, uintptr_t stack) in exec_setregs() 206 get_mcontext(struct thread *td, mcontext_t *mcp, int clear_ret) in get_mcontext() 231 set_mcontext(struct thread *td, mcontext_t *mcp) in set_mcontext() 265 get_fpcontext(struct thread *td, mcontext_t *mcp) in get_fpcontext() [all …]
|
/freebsd/sys/arm/arm/ |
H A D | vm_machdep.c | 150 cpu_set_syscall_retval(struct thread *td, int error) in cpu_set_syscall_retval() 188 cpu_copy_thread(struct thread *td, struct thread *td0) in cpu_copy_thread() 216 cpu_set_upcall(struct thread *td, void (*entry)(void *), void *arg, in cpu_set_upcall() 231 cpu_set_user_tls(struct thread *td, void *tls_base, int thr_flags __unused) in cpu_set_user_tls() 241 cpu_thread_exit(struct thread *td) in cpu_thread_exit() 246 cpu_thread_alloc(struct thread *td) in cpu_thread_alloc() 259 cpu_thread_free(struct thread *td) in cpu_thread_free() 264 cpu_thread_clean(struct thread *td) in cpu_thread_clean() 275 cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg) in cpu_fork_kthread_handler() 282 cpu_update_pcb(struct thread *td) in cpu_update_pcb() [all …]
|
/freebsd/sys/compat/freebsd32/ |
H A D | freebsd32_misc.c | 225 freebsd32_wait4(struct thread *td, struct freebsd32_wait4_args *uap) in freebsd32_wait4() 248 freebsd32_wait6(struct thread *td, struct freebsd32_wait6_args *uap) in freebsd32_wait6() 315 freebsd32_getfsstat(struct thread *td, struct freebsd32_getfsstat_args *uap) in freebsd32_getfsstat() 331 freebsd4_freebsd32_getfsstat(struct thread *td, in freebsd4_freebsd32_getfsstat() 362 freebsd11_freebsd32_getfsstat(struct thread *td, in freebsd11_freebsd32_getfsstat() 371 freebsd32_sigaltstack(struct thread *td, in freebsd32_sigaltstack() 471 freebsd32_execve(struct thread *td, struct freebsd32_execve_args *uap) in freebsd32_execve() 490 freebsd32_fexecve(struct thread *td, struct freebsd32_fexecve_args *uap) in freebsd32_fexecve() 510 freebsd32_mknodat(struct thread *td, struct freebsd32_mknodat_args *uap) in freebsd32_mknodat() 518 freebsd32_mprotect(struct thread *td, struct freebsd32_mprotect_args *uap) in freebsd32_mprotect() [all …]
|
/freebsd/sys/i386/i386/ |
H A D | vm_machdep.c | 88 get_pcb_user_save_td(struct thread *td) in get_pcb_user_save_td() 108 get_pcb_td(struct thread *td) in get_pcb_td() 301 x86_set_fork_retval(struct thread *td) in x86_set_fork_retval() 317 cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg) in cpu_fork_kthread_handler() 328 cpu_exit(struct thread *td) in cpu_exit() 345 cpu_thread_exit(struct thread *td) in cpu_thread_exit() 361 cpu_thread_clean(struct thread *td) in cpu_thread_clean() 378 cpu_thread_alloc(struct thread *td) in cpu_thread_alloc() 396 cpu_thread_free(struct thread *td) in cpu_thread_free() 418 cpu_set_syscall_retval(struct thread *td, int error) in cpu_set_syscall_retval() [all …]
|