/freebsd-11-stable/lib/libc/tests/nss/ |
H A D | getrpc_test.c | 273 rpcent_fill_test_data(struct rpcent_test_data *td) argument 280 TEST_DATA_APPEND(rpcent, td, rpc); 323 rpcent_check_ambiguity(struct rpcent_test_data *td, struct rpcent *rpc) argument 326 return (TEST_DATA_FIND(rpcent, td, rpc, compare_rpcent, 404 struct rpcent_test_data td, td_snap, td_2pass; local 407 TEST_DATA_INIT(rpcent, &td, clone_rpcent, free_rpcent); 431 rv = rpcent_fill_test_data(&td); 437 rv = DO_1PASS_TEST(rpcent, &td, 438 rpcent_test_getrpcbyname, (void *)&td); 445 rv = DO_1PASS_TEST(rpcent, &td, [all...] |
H A D | getgr_test.c | 293 group_fill_test_data(struct group_test_data *td) argument 300 TEST_DATA_APPEND(group, td, grp); 340 group_check_ambiguity(struct group_test_data *td, struct group *pwd) argument 343 return (TEST_DATA_FIND(group, td, pwd, compare_group, 398 struct group_test_data td, td_snap, td_2pass; local 401 TEST_DATA_INIT(group, &td, clone_group, free_group); 425 rv = group_fill_test_data(&td); 431 rv = DO_1PASS_TEST(group, &td, 432 group_test_getgrnam, (void *)&td); 439 rv = DO_1PASS_TEST(group, &td, [all...] |
H A D | getusershell_test.c | 139 struct usershell_test_data td, td_snap; local 145 TEST_DATA_INIT(usershell, &td, clone_usershell, free_usershell); 152 TEST_DATA_APPEND(usershell, &td, &ushell); 179 rv = DO_2PASS_TEST(usershell, &td, &td_snap, 185 &td, sdump_usershell); 195 TEST_DATA_DESTROY(usershell, &td);
|
/freebsd-11-stable/sys/fs/nfsclient/ |
H A D | nfs_clbio.c | 74 struct thread *td); 124 struct thread *td; local 133 td = curthread; 159 (void)ncl_fsinfo(nmp, vp, cred, td); 199 uio.uio_td = td; 273 struct thread *td; local 281 td = curthread; /* XXX */ 298 (void)ncl_fsinfo(nmp, vp, cred, td); 333 uio.uio_td = td; 363 nfs_bioread_check_cons(struct vnode *vp, struct thread *td, struc argument 428 struct thread *td; local 730 struct thread *td = uiop->uio_td; local 865 struct thread *td = uio->uio_td; local 1282 nfs_getcacheblk(struct vnode *vp, daddr_t bn, int size, struct thread *td) argument 1316 ncl_vinvalbuf(struct vnode *vp, int flags, struct thread *td, int intrflg) argument 1391 ncl_asyncio(struct nfsmount *nmp, struct buf *bp, struct ucred *cred, struct thread *td) argument 1580 ncl_doio(struct vnode *vp, struct buf *bp, struct ucred *cr, struct thread *td, int called_from_strategy) argument 1833 ncl_meta_setsize(struct vnode *vp, struct thread *td, u_quad_t nsize) argument [all...] |
/freebsd-11-stable/sys/fs/devfs/ |
H A D | devfs_vnops.c | 558 struct thread *td = ap->a_td; local 580 if (td != NULL) { 581 p = td->td_proc; 637 error = dsw->d_close(dev, ap->a_fflag | dflags, S_IFCHR, td); 645 devfs_close_f(struct file *fp, struct thread *td) argument 651 * NB: td may be NULL if this descriptor is closed due to 656 error = vnops.fo_close(fp, td); 745 devfs_ioctl_f(struct file *fp, u_long com, void *data, struct ucred *cred, struct thread *td) argument 756 fpop = td->td_fpop; 759 error = vnops.fo_ioctl(fp, com, data, cred, td); 826 struct thread *td; local 840 devfs_prison_check(struct devfs_dirent *de, struct thread *td) argument 875 struct thread *td; local 1085 struct thread *td = ap->a_td; local 1216 devfs_poll_f(struct file *fp, int events, struct ucred *cred, struct thread *td) argument 1247 devfs_read_f(struct file *fp, struct uio *uio, struct ucred *cred, int flags, struct thread *td) argument 1564 struct thread *td; local 1672 devfs_stat_f(struct file *fp, struct stat *sb, struct ucred *cred, struct thread *td) argument 1731 devfs_truncate_f(struct file *fp, off_t length, struct ucred *cred, struct thread *td) argument 1738 devfs_write_f(struct file *fp, struct uio *uio, struct ucred *cred, int flags, struct thread *td) argument 1776 devfs_mmap_f(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff, struct thread *td) argument [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | kern_exec.c | 119 static int do_execve(struct thread *td, struct image_args *args, 211 sys_execve(struct thread *td, struct execve_args *uap) argument 217 error = pre_execve(td, &oldvmspace); 223 error = kern_execve(td, &args, NULL, oldvmspace); 224 post_execve(td, error, oldvmspace); 236 sys_fexecve(struct thread *td, struct fexecve_args *uap) argument 242 error = pre_execve(td, &oldvmspace); 249 error = kern_execve(td, &args, NULL, oldvmspace); 251 post_execve(td, error, oldvmspace); 265 sys___mac_execve(struct thread *td, struc argument 287 pre_execve(struct thread *td, struct vmspace **oldvmspace) argument 308 post_execve(struct thread *td, int error, struct vmspace *oldvmspace) argument 337 kern_execve(struct thread *td, struct image_args *args, struct mac *mac_p, struct vmspace *oldvmspace) argument 353 do_execve(struct thread *td, struct image_args *args, struct mac *mac_p, struct vmspace *oldvmspace) argument 980 exec_cleanup(struct thread *td, struct vmspace *oldvmspace) argument 1275 exec_copyin_data_fds(struct thread *td, struct image_args *args, const void *data, size_t datalen, const int *fds, size_t fdslen) argument 1630 struct thread *td; local [all...] |
H A D | kern_priv.c | 191 priv_check(struct thread *td, int priv) argument 194 KASSERT(td == curthread, ("priv_check: td != curthread")); 196 return (priv_check_cred(td->td_ucred, priv, 0));
|
/freebsd-11-stable/sys/powerpc/powerpc/ |
H A D | vm_machdep.c | 182 cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg) argument 186 CTR4(KTR_PROC, "%s called with td=%p func=%p arg=%p", 187 __func__, td, func, arg); 189 cf = (struct callframe *)td->td_pcb->pcb_sp; 196 cpu_exit(struct thread *td) argument 236 cpu_thread_swapin(struct thread *td) argument 242 cpu_thread_swapout(struct thread *td) argument
|
H A D | uio_machdep.c | 64 struct thread *td = curthread; local 79 save = td->td_pflags & TDP_DEADLKTREAT; 80 td->td_pflags |= TDP_DEADLKTREAT; 129 td->td_pflags &= ~TDP_DEADLKTREAT;
|
/freebsd-11-stable/sys/net/ |
H A D | raw_usrreq.c | 152 raw_uattach(struct socket *so, int proto, struct thread *td) argument 162 if (td != NULL) { 163 error = priv_check(td, PRIV_NET_RAW); 171 raw_ubind(struct socket *so, struct sockaddr *nam, struct thread *td) argument 178 raw_uconnect(struct socket *so, struct sockaddr *nam, struct thread *td) argument 222 struct mbuf *control, struct thread *td) 221 raw_usend(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam, struct mbuf *control, struct thread *td) argument
|
/freebsd-11-stable/sys/sys/ |
H A D | ttydevsw.h | 48 struct thread *td); 50 struct thread *td); 132 ttydevsw_ioctl(struct tty *tp, u_long cmd, caddr_t data, struct thread *td) argument 138 return (tp->t_devsw->tsw_ioctl(tp, cmd, data, td)); 143 struct thread *td) 149 return (tp->t_devsw->tsw_cioctl(tp, unit, cmd, data, td)); 142 ttydevsw_cioctl(struct tty *tp, int unit, u_long cmd, caddr_t data, struct thread *td) argument
|
/freebsd-11-stable/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_tasking.cpp | 47 kmp_task_stack_t *task_stack = &thread_data->td.td_susp_tied_tasks; 100 kmp_task_stack_t *task_stack = &thread_data->td.td_susp_tied_tasks; 121 kmp_task_stack_t *task_stack = &thread_data->td.td_susp_tied_tasks; 153 kmp_task_stack_t *task_stack = &thread_data->td.td_susp_tied_tasks; 212 kmp_task_stack_t *task_stack = &thread_data->td.td_susp_tied_tasks; 300 kmp_int32 size = TASK_DEQUE_SIZE(thread_data->td); 311 for (i = thread_data->td.td_deque_head, j = 0; j < size; 312 i = (i + 1) & TASK_DEQUE_MASK(thread_data->td), j++) 313 new_deque[j] = thread_data->td.td_deque[i]; 315 __kmp_free(thread_data->td 3834 kmp_taskdata_t *td = KMP_TASK_TO_TASKDATA(task); local [all...] |
/freebsd-11-stable/sys/compat/cloudabi/ |
H A D | cloudabi_futex.c | 214 futex_address_create(struct futex_address *fa, struct thread *td, argument 218 KASSERT(td == curthread, 261 futex_condvar_lookup(struct thread *td, const cloudabi_condvar_t *address, argument 268 error = futex_address_create(&fa_condvar, td, address, scope); 288 futex_condvar_lookup_or_create(struct thread *td, argument 298 error = futex_address_create(&fa_condvar, td, condvar, condvar_scope); 301 error = futex_address_create(&fa_lock, td, lock, lock_scope); 387 futex_lock_lookup(struct thread *td, const cloudabi_lock_t *address, argument 393 error = futex_address_create(&fa, td, address, scope); 428 futex_lock_rdlock(struct futex_lock *fl, struct thread *td, argument 517 futex_lock_unlock(struct futex_lock *fl, struct thread *td, cloudabi_lock_t *lock) argument 708 futex_lock_wrlock(struct futex_lock *fl, struct thread *td, cloudabi_lock_t *lock, cloudabi_clockid_t clock_id, cloudabi_timestamp_t timeout, cloudabi_timestamp_t precision, bool abstime, struct futex_queue *donated) argument 790 futex_queue_convert_timestamp(struct thread *td, cloudabi_clockid_t clock_id, cloudabi_timestamp_t timeout, cloudabi_timestamp_t precision, sbintime_t *sbttimeout, sbintime_t *sbtprecision, bool abstime) argument 811 futex_queue_sleep(struct futex_queue *fq, struct futex_lock *fl, struct futex_waiter *fw, struct thread *td, cloudabi_clockid_t clock_id, cloudabi_timestamp_t timeout, cloudabi_timestamp_t precision, bool abstime) argument 978 cloudabi_futex_condvar_wait(struct thread *td, cloudabi_condvar_t *condvar, cloudabi_scope_t condvar_scope, cloudabi_lock_t *lock, cloudabi_scope_t lock_scope, cloudabi_clockid_t clock_id, cloudabi_timestamp_t timeout, cloudabi_timestamp_t precision, bool abstime) argument 1052 cloudabi_futex_lock_rdlock(struct thread *td, cloudabi_lock_t *lock, cloudabi_scope_t scope, cloudabi_clockid_t clock_id, cloudabi_timestamp_t timeout, cloudabi_timestamp_t precision, bool abstime) argument 1071 cloudabi_futex_lock_wrlock(struct thread *td, cloudabi_lock_t *lock, cloudabi_scope_t scope, cloudabi_clockid_t clock_id, cloudabi_timestamp_t timeout, cloudabi_timestamp_t precision, bool abstime) argument 1096 cloudabi_sys_condvar_signal(struct thread *td, struct cloudabi_sys_condvar_signal_args *uap) argument 1153 cloudabi_sys_lock_unlock(struct thread *td, struct cloudabi_sys_lock_unlock_args *uap) argument [all...] |
/freebsd-11-stable/sys/compat/linux/ |
H A D | linux_ipc.c | 508 linux_semop(struct thread *td, struct linux_semop_args *args) argument 521 return (sys_semop(td, &bsd_args)); 525 linux_semget(struct thread *td, struct linux_semget_args *args) argument 538 return (sys_semget(td, &bsd_args)); 542 linux_semctl(struct thread *td, struct linux_semctl_args *args) argument 582 return (kern_semctl(td, args->semid, args->semnum, cmd, &semun, 583 td->td_retval)); 587 error = kern_semctl(td, args->semid, args->semnum, cmd, &semun, 597 error = kern_semctl(td, args->semid, args->semnum, cmd, &semun, 605 td 651 linux_msgsnd(struct thread *td, struct linux_msgsnd_args *args) argument 670 linux_msgrcv(struct thread *td, struct linux_msgrcv_args *args) argument 689 linux_msgget(struct thread *td, struct linux_msgget_args *args) argument 702 linux_msgctl(struct thread *td, struct linux_msgctl_args *args) argument 781 linux_shmat(struct thread *td, struct linux_shmat_args *args) argument 796 linux_shmdt(struct thread *td, struct linux_shmdt_args *args) argument 807 linux_shmget(struct thread *td, struct linux_shmget_args *args) argument 822 linux_shmctl(struct thread *td, struct linux_shmctl_args *args) argument [all...] |
H A D | linux_misc.h | 152 int linux_common_wait(struct thread *td, int pid, int *status, 155 int linux_set_upcall_kse(struct thread *td, register_t stack); 156 int linux_set_cloned_tls(struct thread *td, void *desc);
|
/freebsd-11-stable/sys/security/mac/ |
H A D | mac_process.c | 87 static void mac_proc_vm_revoke_recurse(struct thread *td, 129 mac_thread_userret(struct thread *td) argument 132 MAC_POLICY_PERFORM(thread_userret, td); 211 mac_proc_vm_revoke(struct thread *td) argument 215 PROC_LOCK(td->td_proc); 216 cred = crhold(td->td_proc->p_ucred); 217 PROC_UNLOCK(td->td_proc); 220 mac_proc_vm_revoke_recurse(td, cred, 221 &td->td_proc->p_vmspace->vm_map); 252 mac_proc_vm_revoke_recurse(struct thread *td, struc argument [all...] |
/freebsd-11-stable/sys/dev/fb/ |
H A D | vgareg.h | 84 struct thread *td); 86 struct thread *td); 90 int flag, struct thread *td);
|
/freebsd-11-stable/sys/amd64/linux32/ |
H A D | linux32_sysvec.c | 121 static void linux_exec_setregs(struct thread *td, 266 struct thread *td = curthread; local 267 struct proc *p = td->td_proc; 280 regs = td->td_frame; 289 if ((td->td_pflags & TDP_ALTSTACK) && !oonstack && 291 fp = (struct l_rt_sigframe *)((uintptr_t)td->td_sigstk.ss_sp + 292 td->td_sigstk.ss_size - sizeof(struct l_rt_sigframe)); 316 frame.sf_sc.uc_stack.ss_sp = PTROUT(td->td_sigstk.ss_sp); 317 frame.sf_sc.uc_stack.ss_size = td->td_sigstk.ss_size; 318 frame.sf_sc.uc_stack.ss_flags = (td 397 struct thread *td = curthread; local 507 linux_sigreturn(struct thread *td, struct linux_sigreturn_args *args) argument 590 linux_rt_sigreturn(struct thread *td, struct linux_rt_sigreturn_args *args) argument 682 linux32_fetch_syscall_args(struct thread *td) argument 718 linux_exec_setregs(struct thread *td, struct image_params *imgp, u_long stack) argument [all...] |
/freebsd-11-stable/sys/fs/fuse/ |
H A D | fuse_node.c | 174 struct thread *td, 189 err = vfs_hash_get(mp, fuse_vnode_hash(nodeid), LK_EXCLUSIVE, td, vpp, 215 td, &vp2, fuse_vnode_cmp, &nodeid); 236 struct thread *td = (cnp != NULL ? cnp->cn_thread : curthread); local 241 err = fuse_vnode_alloc(mp, td, nodeid, vtyp, vpp); 270 fuse_vnode_open(struct vnode *vp, int32_t fuse_open_flags, struct thread *td) argument 292 fuse_io_invalbuf(vp, td); 295 fuse_io_invalbuf(vp, td); 301 vnode_create_vobject(vp, 0, td); 309 struct thread *td local 173 fuse_vnode_alloc(struct mount *mp, struct thread *td, uint64_t nodeid, enum vtype vtyp, struct vnode **vpp) argument [all...] |
/freebsd-11-stable/sys/ddb/ |
H A D | db_thread.c | 120 struct thread *td; local 132 td = kdb_thr_lookup(decaddr); 133 if (td != NULL) 134 return (td);
|
/freebsd-11-stable/sys/arm64/arm64/ |
H A D | uio_machdep.c | 61 struct thread *td = curthread; local 74 save = td->td_pflags & TDP_DEADLKTREAT; 75 td->td_pflags |= TDP_DEADLKTREAT; 132 td->td_pflags &= ~TDP_DEADLKTREAT;
|
/freebsd-11-stable/sys/amd64/amd64/ |
H A D | uio_machdep.c | 61 struct thread *td = curthread; local 74 save = td->td_pflags & TDP_DEADLKTREAT; 75 td->td_pflags |= TDP_DEADLKTREAT; 130 td->td_pflags &= ~TDP_DEADLKTREAT;
|
/freebsd-11-stable/sys/arm/arm/ |
H A D | uio_machdep.c | 62 struct thread *td = curthread; local 75 save = td->td_pflags & TDP_DEADLKTREAT; 76 td->td_pflags |= TDP_DEADLKTREAT; 122 td->td_pflags &= ~TDP_DEADLKTREAT;
|
/freebsd-11-stable/sys/dev/pty/ |
H A D | pty.c | 61 ptydev_fdopen(struct cdev *dev, int fflags, struct thread *td, struct file *fp) argument 73 error = pts_alloc_external(fflags & (FREAD|FWRITE), td, fp, dev, name); 129 ptmx_fdopen(struct cdev *dev __unused, int fflags, struct thread *td, argument 133 return (pts_alloc(fflags & (FREAD|FWRITE), td, fp));
|
/freebsd-11-stable/sys/powerpc/include/ |
H A D | pcpu.h | 150 struct thread *td; local 152 __asm __volatile("mr %0,13" : "=r"(td)); 154 __asm __volatile("mr %0,2" : "=r"(td)); 156 return (td);
|