Searched refs:td (Results 101 - 125 of 1053) sorted by path

1234567891011>>

/freebsd-11-stable/sys/arm64/arm64/
H A Dvm_machdep.c131 cpu_thread_swapin(struct thread *td) argument
136 cpu_thread_swapout(struct thread *td) argument
141 cpu_set_syscall_retval(struct thread *td, int error) argument
145 frame = td->td_frame;
149 frame->tf_x[0] = td->td_retval[0];
150 frame->tf_x[1] = td->td_retval[1];
173 cpu_copy_thread(struct thread *td, struct thread *td0) argument
175 bcopy(td0->td_frame, td->td_frame, sizeof(struct trapframe));
176 bcopy(td0->td_pcb, td->td_pcb, sizeof(struct pcb));
178 td
194 cpu_set_upcall(struct thread *td, void (*entry)(void *), void *arg, stack_t *stack) argument
205 cpu_set_user_tls(struct thread *td, void *tls_base) argument
221 cpu_thread_exit(struct thread *td) argument
226 cpu_thread_alloc(struct thread *td) argument
236 cpu_thread_free(struct thread *td) argument
241 cpu_thread_clean(struct thread *td) argument
252 cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg) argument
263 cpu_exit(struct thread *td) argument
[all...]
/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/arm64/include/
H A Dcpu.h51 #define cpu_getstack(td) ((td)->td_frame->tf_sp)
52 #define cpu_setstack(td, sp) ((td)->td_frame->tf_sp = (sp))
H A Dpcpu.h61 struct thread *td; local
63 __asm __volatile("ldr %0, [x18]" : "=&r"(td));
64 return (td);
H A Dproc.h61 struct thread *td = curthread; \
62 (total) = td->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb); \
63 (used) = (char *)td->td_kstack + \
64 td->td_kstack_pages * PAGE_SIZE - \
65 (char *)&td; \
/freebsd-11-stable/sys/cam/
H A Dcam_compat.c56 int flag, struct thread *td, d_ioctl_t *cbfnp);
58 int flag, struct thread *td, d_ioctl_t *cbfnp);
63 struct thread *td, d_ioctl_t *cbfnp)
86 error = cam_compat_handle_0x17(dev, cmd, addr, flag, td, cbfnp);
91 error = cam_compat_handle_0x17(dev, cmd, addr, flag, td, cbfnp);
95 error = cam_compat_handle_0x17(dev, cmd, addr, flag, td, cbfnp);
99 error = cam_compat_handle_0x17(dev, cmd, addr, flag, td, cbfnp);
103 error = cam_compat_handle_0x18(dev, cmd, addr, flag, td, cbfnp);
107 error = cam_compat_handle_0x18(dev, cmd, addr, flag, td, cbfnp);
118 struct thread *td, d_ioctl_
62 cam_compat_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td, d_ioctl_t *cbfnp) argument
117 cam_compat_handle_0x17(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td, d_ioctl_t *cbfnp) argument
255 cam_compat_handle_0x18(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td, d_ioctl_t *cbfnp) argument
[all...]
H A Dcam_compat.h38 struct thread *td, int(*cbfnp)(struct cdev *, u_long, caddr_t, int,
/freebsd-11-stable/sys/cam/ctl/
H A Dctl.h177 struct thread *td);
H A Dctl_frontend.h57 struct thread *td);
/freebsd-11-stable/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_kobj.c69 struct thread *td = curthread; local
76 NDINIT(&nd, LOOKUP, 0, UIO_SYSSPACE, file, td);
156 struct thread *td = curthread; local
173 auio.uio_td = td;
176 error = VOP_READ(vp, &auio, IO_UNIT | IO_SYNC, td->td_ucred);
H A Dopensolaris_vfs.c115 mount_snapshot(kthread_t *td, vnode_t **vpp, const char *fstype, char *fspath, argument
137 if (error == 0 && (vfsp = vfs_byname_kld(fstype, td, &error)) == NULL)
193 cr = td->td_ucred;
194 td->td_ucred = kcred;
196 td->td_ucred = cr;
/freebsd-11-stable/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);
H A Dsig.h47 struct thread *td = curthread; local
52 if (SIGPENDING(td)) {
55 p = td->td_proc;
58 sig = cursig(td);
H A Dvfs.h102 int mount_snapshot(kthread_t *td, vnode_t **vpp, const char *fstype,
H A Dvnode.h161 struct thread *td = curthread; local
182 NDINIT_ATVP(&nd, operation, 0, UIO_SYSSPACE, pnamep, startvp, td);
184 error = vn_open_cred(&nd, &filemode, createmode, 0, td->td_ucred, NULL);
211 struct thread *td = curthread; local
224 &resid, td);
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Dfasttrap.c324 fasttrap_scraddr(struct thread *td, fasttrap_proc_t *fprc) argument
333 if (td->t_dtrace_sscr != NULL) {
335 scrspc = (fasttrap_scrspace_t *)td->t_dtrace_sscr;
339 p = td->td_proc;
380 * This scratch space is reserved for use by td until the thread exits.
382 td->t_dtrace_sscr = scrspc;
395 fasttrap_thread_dtor(void *arg __unused, struct thread *td) argument
402 if (td->t_dtrace_sscr == NULL)
405 pid = td->td_proc->p_pid;
423 scrspc = (fasttrap_scrspace_t *)td
722 struct thread *td; local
1562 struct thread *td; local
2271 fasttrap_ioctl(struct cdev *dev, u_long cmd, caddr_t arg, int fflag, struct thread *td) argument
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Ddmu_traverse.c77 static int traverse_dnode(traverse_data_t *td, const dnode_phys_t *dnp,
79 static void prefetch_dnode_metadata(traverse_data_t *td, const dnode_phys_t *,
85 traverse_data_t *td = arg; local
91 if (claim_txg == 0 && bp->blk_birth >= spa_min_claim_txg(td->td_spa))
94 SET_BOOKMARK(&zb, td->td_objset, ZB_ZIL_OBJECT, ZB_ZIL_LEVEL,
97 (void) td->td_func(td->td_spa, zilog, bp, &zb, NULL, td->td_arg);
105 traverse_data_t *td = arg; local
118 SET_BOOKMARK(&zb, td
128 traverse_zil(traverse_data_t *td, zil_header_t *zh) argument
160 resume_skip_check(traverse_data_t *td, const dnode_phys_t *dnp, const zbookmark_phys_t *zb) argument
185 traverse_prefetch_metadata(traverse_data_t *td, const blkptr_t *bp, const zbookmark_phys_t *zb) argument
219 traverse_visitbp(traverse_data_t *td, const dnode_phys_t *dnp, const blkptr_t *bp, const zbookmark_phys_t *zb) argument
432 prefetch_dnode_metadata(traverse_data_t *td, const dnode_phys_t *dnp, uint64_t objset, uint64_t object) argument
450 traverse_dnode(traverse_data_t *td, const dnode_phys_t *dnp, uint64_t objset, uint64_t object) argument
531 traverse_data_t td = *td_main; local
558 traverse_data_t td; local
[all...]
H A Dzfs_replay.c656 kthread_t *td = curthread; local
681 scn.cn_thread = td;
695 tcn.cn_thread = td;
/freebsd-11-stable/sys/cddl/dev/dtmalloc/
H A Ddtmalloc.c219 dtmalloc_open(struct cdev *dev __unused, int oflags __unused, int devtype __unused, struct thread *td __unused)
/freebsd-11-stable/sys/cddl/dev/fbt/
H A Dfbt.c1149 fbt_open(struct cdev *dev __unused, int oflags __unused, int devtype __unused, struct thread *td __unused)
/freebsd-11-stable/sys/cddl/dev/profile/
H A Dprofile.c718 profile_open(struct cdev *dev __unused, int oflags __unused, int devtype __unused, struct thread *td __unused)
/freebsd-11-stable/sys/cddl/dev/
H A Dprototype.c133 prototype_open(struct cdev *dev __unused, int oflags __unused, int devtype __unused, struct thread *td __unused)
/freebsd-11-stable/sys/compat/cloudabi/
H A Dcloudabi_clock.c87 cloudabi_clock_time_get(struct thread *td, cloudabi_clockid_t clock_id, argument
97 error = kern_clock_gettime(td, clockid, &ts);
104 cloudabi_sys_clock_res_get(struct thread *td, argument
115 error = kern_clock_getres(td, clockid, &ts);
121 memcpy(td->td_retval, &cts, sizeof(cts));
126 cloudabi_sys_clock_time_get(struct thread *td, argument
132 error = cloudabi_clock_time_get(td, uap->clock_id, &ts);
133 memcpy(td->td_retval, &ts, sizeof(ts));
H A Dcloudabi_file.c103 cloudabi_sys_file_advise(struct thread *td, argument
131 return (kern_posix_fadvise(td, uap->fd, uap->offset, uap->len, advice));
135 cloudabi_sys_file_allocate(struct thread *td, argument
139 return (kern_posix_fallocate(td, uap->fd, uap->offset, uap->len));
143 cloudabi_sys_file_create(struct thread *td, argument
160 error = kern_mkdirat(td, uap->fd, path, UIO_SYSSPACE, 0777);
171 cloudabi_sys_file_link(struct thread *td, argument
186 error = kern_linkat(td, uap->fd1.fd, uap->fd2, path1, path2,
195 cloudabi_sys_file_open(struct thread *td, argument
255 error = falloc_noinstall(td,
375 cloudabi_sys_file_readdir(struct thread *td, struct cloudabi_sys_file_readdir_args *uap) argument
499 cloudabi_sys_file_readlink(struct thread *td, struct cloudabi_sys_file_readlink_args *uap) argument
516 cloudabi_sys_file_rename(struct thread *td, struct cloudabi_sys_file_rename_args *uap) argument
556 cloudabi_sys_file_stat_fget(struct thread *td, struct cloudabi_sys_file_stat_fget_args *uap) argument
610 cloudabi_sys_file_stat_fput(struct thread *td, struct cloudabi_sys_file_stat_fput_args *uap) argument
645 cloudabi_sys_file_stat_get(struct thread *td, struct cloudabi_sys_file_stat_get_args *uap) argument
687 cloudabi_sys_file_stat_put(struct thread *td, struct cloudabi_sys_file_stat_put_args *uap) argument
720 cloudabi_sys_file_symlink(struct thread *td, struct cloudabi_sys_file_symlink_args *uap) argument
742 cloudabi_sys_file_unlink(struct thread *td, struct cloudabi_sys_file_unlink_args *uap) argument
[all...]
H A Dcloudabi_futex.c214 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...]

Completed in 208 milliseconds

1234567891011>>