Searched refs:td (Results 301 - 325 of 1053) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/sys/compat/svr4/
H A Dsvr4_socket.c87 svr4_find_socket(td, fp, dev, ino, saun)
88 struct thread *td;
97 DPRINTF(("svr4_find_socket: [%p,%ju,%ju]: ", td, (uintmax_t)dev,
101 if (e->p == td->td_proc && e->dev == dev && e->ino == ino) {
119 svr4_add_socket(td, path, st)
120 struct thread *td;
132 e->p = td->td_proc;
148 td->td_proc, (uintmax_t)e->dev, (uintmax_t)e->ino));
231 svr4_sys_socket(td, uap)
232 struct thread *td;
[all...]
/freebsd-11-stable/lib/libkvm/
H A Dkvm_vnet.c86 struct thread td; local
151 if (kvm_read(kd, tdp, &td, sizeof(td)) !=
152 sizeof(td)) {
157 if (td.td_tid == dumptid) {
158 credp = (uintptr_t)td.td_ucred;
161 tdp = (uintptr_t)TAILQ_NEXT(&td, td_plist);
/freebsd-11-stable/sys/powerpc/powerpc/
H A Dfpu.c47 enable_fpu(struct thread *td) argument
53 pcb = td->td_pcb;
54 tf = trapframe(td);
60 td->td_pcb->pcb_fpcpu = PCPU_GET(cpuid);
61 PCPU_SET(fputhread, td);
129 save_fpu(struct thread *td) argument
134 pcb = td->td_pcb;
H A Dmachdep.c476 ptrace_set_pc(struct thread *td, unsigned long addr) argument
480 tf = td->td_frame;
489 struct thread *td; local
492 td = curthread;
493 if (td->td_md.md_spinlock_count == 0) {
496 td->td_md.md_spinlock_count = 1;
497 td->td_md.md_saved_msr = msr;
499 td->td_md.md_spinlock_count++;
506 struct thread *td; local
509 td
[all...]
/freebsd-11-stable/sys/fs/fdescfs/
H A Dfdesc_vfsops.c82 struct thread *td = curthread; local
86 if (!prison_allow(td->td_ucred, PR_ALLOW_MOUNT_FDESCFS))
176 struct thread *td; local
184 td = curthread;
192 lim = lim_cur(td, RLIMIT_NOFILE);
193 fdp = td->td_proc->p_fd;
195 limit = racct_get_limit(td->td_proc, RACCT_NOFILE);
/freebsd-11-stable/sys/dev/hyperv/vmbus/
H A Dvmbus_et.c113 struct thread *td; local
116 td = curthread;
117 td->td_intr_nesting_level++;
118 oldframe = td->td_intr_frame;
119 td->td_intr_frame = frame;
121 td->td_intr_frame = oldframe;
122 td->td_intr_nesting_level--;
/freebsd-11-stable/sys/fs/smbfs/
H A Dsmbfs_io.c185 struct thread *td; local
206 td = uiop->uio_td;
229 error = smbfs_vinvalbuf(vp, td);
236 smb_makescred(scred, td, cred);
249 struct thread *td; local
262 td = uiop->uio_td;
266 error = smbfs_vinvalbuf(vp, td);
285 if (vn_rlimit_fsize(vp, uiop, td))
289 smb_makescred(scred, td, cred);
307 smbfs_doio(struct vnode *vp, struct buf *bp, struct ucred *cr, struct thread *td) argument
558 struct thread *td; local
637 smbfs_vinvalbuf(struct vnode *vp, struct thread *td) argument
[all...]
H A Dsmbfs_vfsops.c137 struct thread *td; local
144 td = curthread;
154 smb_makescred(scred, td, td->td_ucred);
261 struct thread *td; local
268 td = curthread;
283 error = vflush(mp, 1, flags, td);
288 smb_makescred(scred, td, td->td_ucred);
319 struct thread *td; local
388 struct thread *td = curthread; local
[all...]
/freebsd-11-stable/sys/amd64/linux/
H A Dlinux_sysvec.c121 static void linux_set_syscall_retval(struct thread *td, int error);
122 static int linux_fetch_syscall_args(struct thread *td);
123 static void linux_exec_setregs(struct thread *td, struct image_params *imgp,
125 static int linux_vsyscall(struct thread *td);
193 linux_fetch_syscall_args(struct thread *td) argument
199 p = td->td_proc;
200 frame = td->td_frame;
201 sa = &td->td_sa;
218 td->td_retval[0] = 0;
223 linux_set_syscall_retval(struct thread *td, in argument
397 linux_exec_setregs(struct thread *td, struct image_params *imgp, u_long stack) argument
466 linux_rt_sigreturn(struct thread *td, struct linux_rt_sigreturn_args *args) argument
563 struct thread *td; local
669 linux_vsyscall(struct thread *td) argument
[all...]
/freebsd-11-stable/sys/kern/
H A Dinit_main.c389 null_fetch_syscall_args(struct thread *td __unused)
396 null_set_syscall_retval(struct thread *td __unused, int error __unused)
454 struct thread *td; local
461 td = &thread0;
505 td->td_tid = PID_MAX + 1;
506 LIST_INSERT_HEAD(TIDHASH(td->td_tid), td, td_hash);
507 td->td_state = TDS_RUNNING;
508 td->td_pri_class = PRI_TIMESHARE;
509 td
627 struct thread *td; local
733 struct thread *td; local
853 struct thread *td; local
896 struct thread *td; local
[all...]
H A Dtty_pts.c112 int flags, struct thread *td)
186 int flags, struct thread *td)
259 struct ucred *active_cred, struct thread *td)
377 error = tty_ioctl(tp, cmd, data, fp->f_flag, td);
387 struct thread *td)
426 selrecord(td, &psc->pts_outpoll);
428 selrecord(td, &psc->pts_inpoll);
532 struct thread *td)
568 ptsdev_close(struct file *fp, struct thread *td) argument
583 return (vnops.fo_close(fp, td));
111 ptsdev_read(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) argument
185 ptsdev_write(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) argument
258 ptsdev_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) argument
386 ptsdev_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument
531 ptsdev_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, struct thread *td) argument
730 pts_alloc(int fflags, struct thread *td, struct file *fp) argument
783 pts_alloc_external(int fflags, struct thread *td, struct file *fp, struct cdev *dev, const char *name) argument
830 sys_posix_openpt(struct thread *td, struct posix_openpt_args *uap) argument
[all...]
H A Dkern_rmlock.c138 struct thread *td; local
158 td = curthread;
164 (tracker->rmp_thread == td)) {
218 * Return a count of the number of trackers the thread 'td' already
223 const struct thread *td)
233 if ((tracker->rmp_rmlock == rm) && (tracker->rmp_thread == td))
433 struct thread *td = curthread; local
440 tracker->rmp_thread = td;
446 td->td_critnest++; /* critical_enter(); */
450 pc = cpuid_to_pcpu[td
222 rm_trackers_present(const struct pcpu *pc, const struct rmlock *rm, const struct thread *td) argument
473 _rm_unlock_hard(struct thread *td,struct rm_priotracker *tracker) argument
509 struct thread *td = tracker->rmp_thread; local
815 struct thread *td; local
[all...]
H A Dsysv_msg.c476 sys_msgctl(struct thread *td, struct msgctl_args *uap) argument
487 error = kern_msgctl(td, msqid, cmd, &msqbuf);
494 kern_msgctl(td, msqid, cmd, msqbuf)
495 struct thread *td;
504 rpr = msg_find_prison(td->td_ucred);
537 error = mac_sysvmsq_check_msqctl(td->td_ucred, msqkptr, cmd);
552 if ((error = ipcperm(td, &msqkptr->u.msg_perm, IPC_M)))
567 error = mac_sysvmsq_check_msgrmid(td->td_ucred, msghdr);
579 if ((error = ipcperm(td, &msqkptr->u.msg_perm, IPC_M)))
582 error = priv_check(td, PRIV_IPC_MSGSIZ
635 sys_msgget(struct thread *td, struct msgget_args *uap) argument
756 kern_msgsnd(struct thread *td, int msqid, const void *msgp, size_t msgsz, int msgflg, long mtype) argument
1096 sys_msgsnd(struct thread *td, struct msgsnd_args *uap) argument
1124 kern_msgrcv(struct thread *td, int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg, long *mtype) argument
1381 sys_msgrcv(struct thread *td, struct msgrcv_args *uap) argument
1658 freebsd32_msgsys(struct thread *td, struct freebsd32_msgsys_args *uap) argument
1684 freebsd7_freebsd32_msgctl(struct thread *td, struct freebsd7_freebsd32_msgctl_args *uap) argument
1730 freebsd32_msgctl(struct thread *td, struct freebsd32_msgctl_args *uap) argument
1773 freebsd32_msgsnd(struct thread *td, struct freebsd32_msgsnd_args *uap) argument
1790 freebsd32_msgrcv(struct thread *td, struct freebsd32_msgrcv_args *uap) argument
1830 sys_msgsys(struct thread *td, struct msgsys_args *uap) argument
1852 freebsd7_msgctl(struct thread *td, struct freebsd7_msgctl_args *uap) argument
[all...]
H A Dvfs_vnops.c170 struct vn_io_fault_args *args, struct thread *td);
178 struct thread *td = ndp->ni_cnd.cn_thread; local
180 return (vn_open_cred(ndp, flagp, cmode, 0, td->td_ucred, fp));
197 struct thread *td = ndp->ni_cnd.cn_thread; local
286 error = vn_open_vnode(vp, fmode, cred, td, fp);
305 struct thread *td, struct file *fp)
347 error = VOP_ACCESS(vp, accmode, cred, td);
354 if ((error = VOP_OPEN(vp, fmode, cred, td, fp)) != 0)
439 struct thread *td, bool keep_ref)
460 error = VOP_CLOSE(vp, flags, file_cred, td);
304 vn_open_vnode(struct vnode *vp, int fmode, struct ucred *cred, struct thread *td, struct file *fp) argument
438 vn_close1(struct vnode *vp, int flags, struct ucred *file_cred, struct thread *td, bool keep_ref) argument
470 vn_close(struct vnode *vp, int flags, struct ucred *file_cred, struct thread *td) argument
524 vn_rdwr(enum uio_rw rw, struct vnode *vp, void *base, int len, off_t offset, enum uio_seg segflg, int ioflg, struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid, struct thread *td) argument
961 vn_io_fault_doio(struct vn_io_fault_args *args, struct uio *uio, struct thread *td) argument
1051 vn_io_fault1(struct vnode *vp, struct uio *uio, struct vn_io_fault_args *args, struct thread *td) argument
1163 vn_io_fault(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) argument
1218 struct thread *td; local
1273 struct thread *td; local
1312 vn_truncate(struct file *fp, off_t length, struct ucred *active_cred, struct thread *td) argument
1381 vn_stat(struct vnode *vp, struct stat *sb, struct ucred *active_cred, struct ucred *file_cred, struct thread *td) argument
1488 vn_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument
1523 vn_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument
1574 vn_closefile(struct file *fp, struct thread *td) argument
1935 vn_extattr_get(struct vnode *vp, int ioflg, int attrnamespace, const char *attrname, int *buflen, char *buf, struct thread *td) argument
1976 vn_extattr_set(struct vnode *vp, int ioflg, int attrnamespace, const char *attrname, int buflen, char *buf, struct thread *td) argument
2015 vn_extattr_rm(struct vnode *vp, int ioflg, int attrnamespace, const char *attrname, struct thread *td) argument
2103 vn_rlimit_fsize(const struct vnode *vp, const struct uio *uio, struct thread *td) argument
2120 vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument
2135 vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument
2216 vn_seek(struct file *fp, off_t offset, int whence, struct thread *td) argument
2285 vn_utimes_perm(struct vnode *vp, struct vattr *vap, struct ucred *cred, struct thread *td) argument
2388 vn_mmap(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...]
H A Dkern_acct.c198 sys_acct(struct thread *td, struct acct_args *uap) argument
203 error = priv_check(td, PRIV_ACCT);
213 UIO_USERSPACE, uap->path, td);
220 error = mac_system_check_acct(td->td_ucred, nd.ni_vp);
223 vn_close(nd.ni_vp, flags, td->td_ucred, td);
229 vn_close(nd.ni_vp, flags, td->td_ucred, td);
234 error = mac_system_check_acct(td->td_ucred, NULL);
261 error = acct_disable(td, !replacin
316 acct_disable(struct thread *td, int logging) argument
340 acct_process(struct thread *td) argument
[all...]
/freebsd-11-stable/sys/dev/usb/controller/
H A Dohci.c127 ohci_td_t *td; member in struct:ohci_std_temp
724 ohci_itd_t *td = xfer->td_transfer_first; local
727 if (td == NULL) {
734 ohci_dump_itd(td);
737 usb_pc_cpu_invalidate(td->page_cache);
739 nframes = td->frames;
740 olen = &td->itd_offset[0];
762 if (((void *)td) == xfer->td_transfer_last) {
765 td = td
802 ohci_td_t *td; local
947 ohci_td_t *td; local
1251 ohci_td_t *td; local
1397 ohci_td_t *td; local
1850 ohci_itd_t *td; local
2469 ohci_td_t *td; local
[all...]
/freebsd-11-stable/sys/amd64/amd64/
H A Dmachdep.c169 static void get_fpcontext(struct thread *td, mcontext_t *mcp,
171 static int set_fpcontext(struct thread *td, mcontext_t *mcp,
349 struct thread *td; local
358 td = curthread;
359 pcb = td->td_pcb;
360 p = td->td_proc;
365 regs = td->td_frame;
379 sf.sf_uc.uc_stack = td->td_sigstk;
380 sf.sf_uc.uc_stack.ss_flags = (td->td_pflags & TDP_ALTSTACK)
385 get_fpcontext(td,
580 freebsd4_sigreturn(struct thread *td, struct freebsd4_sigreturn_args *uap) argument
591 exec_setregs(struct thread *td, struct image_params *imgp, u_long stack) argument
1951 struct thread *td; local
1967 struct thread *td; local
2000 ptrace_set_pc(struct thread *td, unsigned long addr) argument
2009 ptrace_single_step(struct thread *td) argument
2021 ptrace_clear_single_step(struct thread *td) argument
2030 fill_regs(struct thread *td, struct reg *regs) argument
2079 set_regs(struct thread *td, struct reg *regs) argument
2180 fill_fpregs(struct thread *td, struct fpreg *fpregs) argument
2193 set_fpregs(struct thread *td, struct fpreg *fpregs) argument
2207 get_mcontext(struct thread *td, mcontext_t *mcp, int flags) argument
2266 set_mcontext(struct thread *td, mcontext_t *mcp) argument
2330 get_fpcontext(struct thread *td, mcontext_t *mcp, char *xfpusave, size_t xfpusave_len) argument
2353 set_fpcontext(struct thread *td, mcontext_t *mcp, char *xfpustate, size_t xfpustate_len) argument
2376 fpstate_drop(struct thread *td) argument
2399 fill_dbregs(struct thread *td, struct dbreg *dbregs) argument
2433 set_dbregs(struct thread *td, struct dbreg *dbregs) argument
[all...]
/freebsd-11-stable/sys/netsmb/
H A Dsmb_subr.c56 smb_makescred(struct smb_cred *scred, struct thread *td, struct ucred *cred) argument
58 if (td) {
59 scred->scr_td = td;
60 scred->scr_cred = cred ? cred : td->td_ucred;
68 smb_td_intr(struct thread *td) argument
73 if (td == NULL)
76 p = td->td_proc;
79 SIGSETOR(tmpset, td->td_siglist);
80 SIGSETNAND(tmpset, td->td_sigmask);
84 if (SIGNOTEMPTY(td
[all...]
/freebsd-11-stable/sys/mips/mips/
H A Dmachdep.c487 fill_dbregs(struct thread *td, struct dbreg *dbregs) argument
495 set_dbregs(struct thread *td, struct dbreg *dbregs) argument
505 struct thread *td; local
508 td = curthread;
509 if (td->td_md.md_spinlock_count == 0) {
511 td->td_md.md_spinlock_count = 1;
512 td->td_md.md_saved_intr = intr;
514 td->td_md.md_spinlock_count++;
521 struct thread *td; local
524 td
[all...]
/freebsd-11-stable/sys/sys/
H A Dsocketvar.h345 int getsock_cap(struct thread *td, int fd, cap_rights_t *rightsp,
353 int sobind(struct socket *so, struct sockaddr *nam, struct thread *td);
355 struct thread *td);
357 int soconnect(struct socket *so, struct sockaddr *nam, struct thread *td);
359 struct thread *td);
362 struct ucred *cred, struct thread *td);
367 int solisten(struct socket *so, int backlog, struct thread *td);
375 struct thread *td);
377 struct ucred *active_cred, struct thread *td);
393 struct thread *td);
[all...]
/freebsd-11-stable/sys/i386/i386/
H A Dmachdep.c172 static void fpstate_drop(struct thread *td);
173 static void get_fpcontext(struct thread *td, mcontext_t *mcp,
175 static int set_fpcontext(struct thread *td, mcontext_t *mcp,
351 struct thread *td; local
357 td = curthread;
358 p = td->td_proc;
363 regs = td->td_frame;
367 if ((td->td_pflags & TDP_ALTSTACK) && !oonstack &&
369 fp = (struct osigframe *)((uintptr_t)td->td_sigstk.ss_sp +
370 td
480 struct thread *td; local
599 struct thread *td; local
1128 exec_setregs(struct thread *td, struct image_params *imgp, u_long stack) argument
2846 struct thread *td; local
2862 struct thread *td; local
2926 ptrace_set_pc(struct thread *td, u_long addr) argument
2934 ptrace_single_step(struct thread *td) argument
2946 ptrace_clear_single_step(struct thread *td) argument
2955 fill_regs(struct thread *td, struct reg *regs) argument
2991 set_regs(struct thread *td, struct reg *regs) argument
3021 fill_fpregs(struct thread *td, struct fpreg *fpregs) argument
3038 set_fpregs(struct thread *td, struct fpreg *fpregs) argument
3057 get_mcontext(struct thread *td, mcontext_t *mcp, int flags) argument
3110 set_mcontext(struct thread *td, mcontext_t *mcp) argument
3155 get_fpcontext(struct thread *td, mcontext_t *mcp, char *xfpusave, size_t xfpusave_len) argument
3178 set_fpcontext(struct thread *td, mcontext_t *mcp, char *xfpustate, size_t xfpustate_len) argument
3202 fpstate_drop(struct thread *td) argument
3225 fill_dbregs(struct thread *td, struct dbreg *dbregs) argument
3253 set_dbregs(struct thread *td, struct dbreg *dbregs) argument
[all...]
/freebsd-11-stable/sys/dev/cxgb/ulp/tom/
H A Dcxgb_cpl_io.c129 struct tom_data *td = t3_tomdata(tod); local
141 mtx_lock(&td->toep_list_lock);
142 TAILQ_REMOVE(&td->toep_list, toep, link);
143 mtx_unlock(&td->toep_list_lock);
225 insert_tid(struct tom_data *td, void *ctx, unsigned int tid) argument
227 struct tid_info *t = &td->tid_maps;
234 update_tid(struct tom_data *td, void *ctx, unsigned int tid) argument
236 struct tid_info *t = &td->tid_maps;
242 remove_tid(struct tom_data *td, unsigned int tid) argument
244 struct tid_info *t = &td
254 struct tom_data *td = t3_tomdata(tod); local
280 struct tom_data *td = t3_tomdata(tod); local
305 struct tom_data *td = data; local
620 struct tom_data *td = sc->tom_softc; local
705 struct tom_data *td = t3_tomdata(tod); local
770 struct tom_data *td = t3_tomdata(tod); local
808 struct tom_data *td = t3_tomdata(tod); local
909 struct tom_data *td = sc->tom_softc; local
954 struct tom_data *td = t3_tomdata(tod); local
1110 struct tom_data *td = sc->tom_softc; local
1216 struct tom_data *td = sc->tom_softc; local
1279 struct tom_data *td = sc->tom_softc; local
1372 struct tom_data *td = sc->tom_softc; local
1470 struct tom_data *td = sc->tom_softc; local
1648 struct tom_data *td = sc->tom_softc; local
1783 struct tom_data *td = sc->tom_softc; local
[all...]
/freebsd-11-stable/lib/libc/tests/nss/
H A Dgetpw_test.c239 passwd_fill_test_data(struct passwd_test_data *td) argument
246 TEST_DATA_APPEND(passwd, td, pwd);
302 passwd_check_ambiguity(struct passwd_test_data *td, struct passwd *pwd) argument
305 return (TEST_DATA_FIND(passwd, td, pwd, compare_passwd,
378 struct passwd_test_data td, td_snap, td_2pass; local
381 TEST_DATA_INIT(passwd, &td, clone_passwd, free_passwd);
404 rv = passwd_fill_test_data(&td);
411 rv = DO_1PASS_TEST(passwd, &td,
412 passwd_test_getpwnam, (void *)&td);
419 rv = DO_1PASS_TEST(passwd, &td,
[all...]
H A Dgetserv_test.c286 servent_fill_test_data(struct servent_test_data *td) argument
293 TEST_DATA_APPEND(servent, td, serv);
338 servent_check_ambiguity(struct servent_test_data *td, struct servent *serv) argument
341 return (TEST_DATA_FIND(servent, td, serv, compare_servent,
416 struct servent_test_data td, td_snap, td_2pass; local
419 TEST_DATA_INIT(servent, &td, clone_servent, free_servent);
443 rv = servent_fill_test_data(&td);
449 rv = DO_1PASS_TEST(servent, &td,
450 servent_test_getservbyname, (void *)&td);
457 rv = DO_1PASS_TEST(servent, &td,
[all...]
H A Dgetproto_test.c274 protoent_fill_test_data(struct protoent_test_data *td) argument
281 TEST_DATA_APPEND(protoent, td, pe);
323 protoent_check_ambiguity(struct protoent_test_data *td, struct protoent *pe) argument
326 return (TEST_DATA_FIND(protoent, td, pe, compare_protoent,
401 struct protoent_test_data td, td_snap, td_2pass; local
404 TEST_DATA_INIT(protoent, &td, clone_protoent, free_protoent);
428 rv = protoent_fill_test_data(&td);
434 rv = DO_1PASS_TEST(protoent, &td,
435 protoent_test_getprotobyname, (void *)&td);
442 rv = DO_1PASS_TEST(protoent, &td,
[all...]

Completed in 418 milliseconds

<<11121314151617181920>>