/freebsd-11-stable/sys/kern/ |
H A D | kern_cpuset.c | 222 cpuset_lookup(cpusetid_t setid, struct thread *td) argument 236 KASSERT(td != NULL, ("[%s:%d] td is NULL", __func__, __LINE__)); 237 if (set != NULL && jailed(td->td_ucred)) { 240 jset = td->td_ucred->cr_prison->pr_cpuset; 409 struct thread *td; local 414 *tdp = td = NULL; 430 td = curthread; 433 td = tdfind(id, -1); 434 if (td 522 struct thread *td; local 699 struct thread *td; local 734 struct thread *td; local 951 sys_cpuset(struct thread *td, struct cpuset_args *uap) argument 979 sys_cpuset_setid(struct thread *td, struct cpuset_setid_args *uap) argument 986 kern_cpuset_setid(struct thread *td, cpuwhich_t which, id_t id, cpusetid_t setid) argument 1014 sys_cpuset_getid(struct thread *td, struct cpuset_getid_args *uap) argument 1022 kern_cpuset_getid(struct thread *td, cpulevel_t level, cpuwhich_t which, id_t id, cpusetid_t *setid) argument 1081 sys_cpuset_getaffinity(struct thread *td, struct cpuset_getaffinity_args *uap) argument 1089 kern_cpuset_getaffinity(struct thread *td, cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, cpuset_t *maskp) argument 1199 sys_cpuset_setaffinity(struct thread *td, struct cpuset_setaffinity_args *uap) argument 1207 kern_cpuset_setaffinity(struct thread *td, cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, const cpuset_t *maskp) argument [all...] |
H A D | kern_descrip.c | 104 struct thread *td, int holdleaders); 111 static int getmaxfd(struct thread *td); 173 void __read_mostly (*mq_fdclose)(struct thread *td, int fd, struct file *fp); 339 sys_getdtablesize(struct thread *td, struct getdtablesize_args *uap) argument 345 td->td_retval[0] = 346 min((int)lim_cur(td, RLIMIT_NOFILE), maxfilesperproc); 348 PROC_LOCK(td->td_proc); 349 lim = racct_get_limit(td->td_proc, RACCT_NOFILE); 350 PROC_UNLOCK(td->td_proc); 351 if (lim < td 371 sys_dup2(struct thread *td, struct dup2_args *uap) argument 387 sys_dup(struct thread *td, struct dup_args *uap) argument 405 sys_fcntl(struct thread *td, struct fcntl_args *uap) argument 412 kern_fcntl_freebsd(struct thread *td, int fd, int cmd, long arg) argument 479 kern_fcntl(struct thread *td, int fd, int cmd, intptr_t arg) argument 802 getmaxfd(struct thread *td) argument 812 kern_dup(struct thread *td, u_int mode, int flags, int old, int new) argument 1163 closefp(struct filedesc *fdp, int fd, struct file *fp, struct thread *td, int holdleaders) argument 1221 sys_close(struct thread *td, struct close_args *uap) argument 1228 kern_close(struct thread *td, int fd) argument 1258 sys_closefrom(struct thread *td, struct closefrom_args *uap) argument 1296 ofstat(struct thread *td, struct ofstat_args *uap) argument 1322 sys_fstat(struct thread *td, struct fstat_args *uap) argument 1334 kern_fstat(struct thread *td, int fd, struct stat *sbp) argument 1368 sys_nfstat(struct thread *td, struct nfstat_args *uap) argument 1393 sys_fpathconf(struct thread *td, struct fpathconf_args *uap) argument 1400 kern_fpathconf(struct thread *td, int fd, int name) argument 1643 fdalloc(struct thread *td, int minfd, int *result) argument 1703 fdallocn(struct thread *td, int minfd, int *fds, int n) argument 1732 falloc_caps(struct thread *td, struct file **resultfp, int *resultfd, int flags, struct filecaps *fcaps) argument 1763 falloc_noinstall(struct thread *td, struct file **resultfp) argument 1822 finstall(struct thread *td, struct file *fp, int *fd, int flags, struct filecaps *fcaps) argument 1936 fdunshare(struct thread *td) argument 1950 fdinstall_remapped(struct thread *td, struct filedesc *fdp) argument 2059 fdclearlocks(struct thread *td) argument 2139 fdescfree_fds(struct thread *td, struct filedesc *fdp, bool needclose) argument 2172 fdescfree(struct thread *td) argument 2258 fdsetugidsafety(struct thread *td) argument 2291 fdclose(struct thread *td, struct file *fp, int idx) argument 2308 fdcloseexec(struct thread *td) argument 2338 fdcheckstd(struct thread *td) argument 2379 closef(struct file *fp, struct thread *td) argument 2494 fget_cap(struct thread *td, int fd, cap_rights_t *needrightsp, struct file **fpp, struct filecaps *havecapsp) argument 2632 _fget(struct thread *td, int fd, struct file **fpp, int flags, cap_rights_t *needrightsp, seq_t *seqp) argument 2680 fget(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp) argument 2687 fget_mmap(struct thread *td, int fd, cap_rights_t *rightsp, vm_prot_t *maxprotp, struct file **fpp) argument 2722 fget_read(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp) argument 2729 fget_write(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp) argument 2736 fget_fcntl(struct thread *td, int fd, cap_rights_t *rightsp, int needfcntl, struct file **fpp) argument 2772 _fgetvp(struct thread *td, int fd, int flags, cap_rights_t *needrightsp, struct vnode **vpp) argument 2794 fgetvp(struct thread *td, int fd, cap_rights_t *rightsp, struct vnode **vpp) argument 2801 fgetvp_rights(struct thread *td, int fd, cap_rights_t *needrightsp, struct filecaps *havecaps, struct vnode **vpp) argument 2833 fgetvp_read(struct thread *td, int fd, cap_rights_t *rightsp, struct vnode **vpp) argument 2840 fgetvp_exec(struct thread *td, int fd, cap_rights_t *rightsp, struct vnode **vpp) argument 2848 fgetvp_write(struct thread *td, int fd, cap_rights_t *rightsp, struct vnode **vpp) argument 2860 _fdrop(struct file *fp, struct thread *td) argument 2889 sys_flock(struct thread *td, struct flock_args *uap) argument 2934 dupfdopen(struct thread *td, struct filedesc *fdp, int dfd, int mode, int openerror, int *indxp) argument 3059 pwd_chroot(struct thread *td, struct vnode *vp) argument 3088 pwd_chdir(struct thread *td, struct vnode *vp) argument 3107 pwd_chroot_chdir(struct thread *td, struct vnode *vp) argument 3960 badfo_readwrite(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) argument 3968 badfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, struct thread *td) argument 3976 badfo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument 3984 badfo_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument 3999 badfo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, struct thread *td) argument 4007 badfo_close(struct file *fp, struct thread *td) argument 4014 badfo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument 4022 badfo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument 4030 badfo_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio, struct uio *trl_uio, off_t offset, size_t nbytes, off_t *sent, int flags, struct thread *td) argument 4061 invfo_rdwr(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) argument 4069 invfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, struct thread *td) argument 4077 invfo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument 4085 invfo_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument 4100 invfo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument 4108 invfo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument 4116 invfo_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio, struct uio *trl_uio, off_t offset, size_t nbytes, off_t *sent, int flags, struct thread *td) argument 4139 fdopen(struct cdev *dev, int mode, int type, struct thread *td) argument [all...] |
H A D | kern_ctf.c | 73 struct thread *td = curthread; local 115 NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, lf->pathname, td); 127 0, UIO_SYSSPACE, IO_NODELOCKED, td->td_ucred, NOCRED, NULL, 128 td)) != 0) 149 hdr->e_shoff, UIO_SYSSPACE, IO_NODELOCKED, td->td_ucred, NOCRED, 150 NULL, td)) != 0) 172 UIO_SYSSPACE, IO_NODELOCKED, td->td_ucred, NOCRED, NULL, td)) != 0) 190 shdr[i].sh_offset, UIO_SYSSPACE, IO_NODELOCKED, td->td_ucred, 191 NOCRED, NULL, td)) ! [all...] |
H A D | kern_intr.c | 81 struct thread *td; member in struct:intr_entropy 169 struct thread *td; local 173 td = ithd->it_thread; 182 strlcpy(td->td_name, ie->ie_fullname, sizeof(td->td_name)); 184 sched_clear_tdname(td); 186 thread_lock(td); 187 sched_prio(td, pri); 188 thread_unlock(td); 449 struct thread *td; local 522 struct thread *td; local 546 struct thread *td; local 570 struct thread *td; local 829 struct thread *td; local 958 struct thread *td; local 1121 struct thread *td; local 1402 struct thread *td; local 1484 struct thread *td; local 1575 struct thread *td; local 1740 struct thread *td; local [all...] |
H A D | kern_exit.c | 177 sys_sys_exit(struct thread *td, struct sys_exit_args *uap) argument 180 exit1(td, uap->rval, 0); 190 exit1(struct thread *td, int rval, int signo) argument 199 p = td->td_proc; 213 td_softdep_cleanup(td); 310 AUDIT_SYSCALL_EXIT(0, td); 359 umtx_thread_exit(td); 377 fdescfree(td); 383 if (td->td_pflags & TDP_GEOM) 401 vmspace_exit(td); 673 sys_abort2(struct thread *td, struct abort2_args *uap) argument 746 owait(struct thread *td, struct owait_args *uap __unused) argument 761 sys_wait4(struct thread *td, struct wait4_args *uap) argument 779 sys_wait6(struct thread *td, struct wait6_args *uap) argument 822 proc_reap(struct thread *td, struct proc *p, int *status, int options) argument 962 proc_to_reap(struct thread *td, struct proc *p, idtype_t idtype, id_t id, int *status, int options, struct __wrusage *wrusage, siginfo_t *siginfo, int check_only) argument 1113 kern_wait(struct thread *td, pid_t pid, int *status, int options, struct rusage *rusage) argument 1154 report_alive_proc(struct thread *td, struct proc *p, siginfo_t *siginfo, int *status, int options, int si_code) argument 1186 kern_wait6(struct thread *td, idtype_t idtype, id_t id, int *status, int options, struct __wrusage *wrusage, siginfo_t *siginfo) argument [all...] |
/freebsd-11-stable/sys/security/audit/ |
H A D | audit.c | 213 struct thread *td; local 219 td = arg; 228 cred = td->td_ucred; 235 ar->k_ar.ar_subj_pid = td->td_proc->p_pid; 368 audit_new(int event, struct thread *td) argument 384 ar = uma_zalloc_arg(audit_record_zone, td, M_WAITOK); 510 audit_syscall_enter(unsigned short code, struct thread *td) argument 517 KASSERT(td->td_ar == NULL, ("audit_syscall_enter: td->td_ar != NULL")); 518 KASSERT((td 586 audit_syscall_exit(int error, struct thread *td) argument 648 audit_thread_alloc(struct thread *td) argument 655 audit_thread_free(struct thread *td) argument 664 audit_proc_coredump(struct thread *td, char *path, int errcode) argument [all...] |
/freebsd-11-stable/sys/compat/freebsd32/ |
H A D | freebsd32_ioctl.c | 69 freebsd32_ioctl_md(struct thread *td, struct freebsd32_ioctl_args *uap, argument 115 error = fo_ioctl(fp, com, (caddr_t)&mdv, td->td_ucred, td); 142 freebsd32_ioctl_ioc_toc_header(struct thread *td, argument 155 td->td_ucred, td); 161 freebsd32_ioctl_ioc_read_toc(struct thread *td, argument 176 td->td_ucred, td))) { 187 freebsd32_ioctl_fiodgname(struct thread *td, argument 203 freebsd32_ioctl_memrange(struct thread *td, struct freebsd32_ioctl_args *uap, struct file *fp) argument 246 freebsd32_ioctl_pciocgetconf(struct thread *td, struct freebsd32_ioctl_args *uap, struct file *fp) argument 350 freebsd32_ioctl_sg(struct thread *td, struct freebsd32_ioctl_args *uap, struct file *fp) argument 415 freebsd32_ioctl(struct thread *td, struct freebsd32_ioctl_args *uap) argument [all...] |
H A D | freebsd32_misc.c | 137 static int freebsd32_user_clock_nanosleep(struct thread *td, clockid_t clock_id, 163 freebsd32_wait4(struct thread *td, struct freebsd32_wait4_args *uap) argument 173 error = kern_wait(td, uap->pid, &status, uap->options, rup); 186 freebsd32_wait6(struct thread *td, struct freebsd32_wait6_args *uap) argument 203 error = kern_wait6(td, uap->idtype, PAIR32TO64(id_t, uap->id), 254 freebsd4_freebsd32_getfsstat(struct thread *td, argument 264 error = kern_getfsstat(td, &buf, size, &count, UIO_SYSSPACE, uap->mode); 278 td->td_retval[0] = count; 285 freebsd10_freebsd32_pipe(struct thread *td, argument 288 return (freebsd10_pipe(td, (struc 293 freebsd32_sigaltstack(struct thread *td, struct freebsd32_sigaltstack_args *uap) argument 419 freebsd32_execve(struct thread *td, struct freebsd32_execve_args *uap) argument 437 freebsd32_fexecve(struct thread *td, struct freebsd32_fexecve_args *uap) argument 457 freebsd32_mprotect(struct thread *td, struct freebsd32_mprotect_args *uap) argument 471 freebsd32_mmap(struct thread *td, struct freebsd32_mmap_args *uap) argument 487 freebsd6_freebsd32_mmap(struct thread *td, struct freebsd6_freebsd32_mmap_args *uap) argument 504 freebsd32_setitimer(struct thread *td, struct freebsd32_setitimer_args *uap) argument 528 freebsd32_getitimer(struct thread *td, struct freebsd32_getitimer_args *uap) argument 543 freebsd32_select(struct thread *td, struct freebsd32_select_args *uap) argument 566 freebsd32_pselect(struct thread *td, struct freebsd32_pselect_args *uap) argument 657 freebsd32_kevent(struct thread *td, struct freebsd32_kevent_args *uap) argument 697 freebsd32_gettimeofday(struct thread *td, struct freebsd32_gettimeofday_args *uap) argument 720 freebsd32_getrusage(struct thread *td, struct freebsd32_getrusage_args *uap) argument 776 freebsd32_readv(struct thread *td, struct freebsd32_readv_args *uap) argument 790 freebsd32_writev(struct thread *td, struct freebsd32_writev_args *uap) argument 804 freebsd32_preadv(struct thread *td, struct freebsd32_preadv_args *uap) argument 818 freebsd32_pwritev(struct thread *td, struct freebsd32_pwritev_args *uap) argument 1203 freebsd32_sendmsg(struct thread *td, struct freebsd32_sendmsg_args *uap) argument 1259 freebsd32_recvfrom(struct thread *td, struct freebsd32_recvfrom_args *uap) argument 1290 freebsd32_settimeofday(struct thread *td, struct freebsd32_settimeofday_args *uap) argument 1318 freebsd32_utimes(struct thread *td, struct freebsd32_utimes_args *uap) argument 1340 freebsd32_lutimes(struct thread *td, struct freebsd32_lutimes_args *uap) argument 1361 freebsd32_futimes(struct thread *td, struct freebsd32_futimes_args *uap) argument 1382 freebsd32_futimesat(struct thread *td, struct freebsd32_futimesat_args *uap) argument 1404 freebsd32_futimens(struct thread *td, struct freebsd32_futimens_args *uap) argument 1425 freebsd32_utimensat(struct thread *td, struct freebsd32_utimensat_args *uap) argument 1447 freebsd32_adjtime(struct thread *td, struct freebsd32_adjtime_args *uap) argument 1473 freebsd4_freebsd32_statfs(struct thread *td, struct freebsd4_freebsd32_statfs_args *uap) argument 1492 freebsd4_freebsd32_fstatfs(struct thread *td, struct freebsd4_freebsd32_fstatfs_args *uap) argument 1511 freebsd4_freebsd32_fhstatfs(struct thread *td, struct freebsd4_freebsd32_fhstatfs_args *uap) argument 1532 freebsd32_pread(struct thread *td, struct freebsd32_pread_args *uap) argument 1540 freebsd32_pwrite(struct thread *td, struct freebsd32_pwrite_args *uap) argument 1549 ofreebsd32_lseek(struct thread *td, struct ofreebsd32_lseek_args *uap) argument 1557 freebsd32_lseek(struct thread *td, struct freebsd32_lseek_args *uap) argument 1572 freebsd32_truncate(struct thread *td, struct freebsd32_truncate_args *uap) argument 1580 freebsd32_ftruncate(struct thread *td, struct freebsd32_ftruncate_args *uap) argument 1588 ofreebsd32_getdirentries(struct thread *td, struct ofreebsd32_getdirentries_args *uap) argument 1610 freebsd32_getdirentries(struct thread *td, struct freebsd32_getdirentries_args *uap) argument 1631 freebsd6_freebsd32_pread(struct thread *td, struct freebsd6_freebsd32_pread_args *uap) argument 1639 freebsd6_freebsd32_pwrite(struct thread *td, struct freebsd6_freebsd32_pwrite_args *uap) argument 1647 freebsd6_freebsd32_lseek(struct thread *td, struct freebsd6_freebsd32_lseek_args *uap) argument 1662 freebsd6_freebsd32_truncate(struct thread *td, struct freebsd6_freebsd32_truncate_args *uap) argument 1670 freebsd6_freebsd32_ftruncate(struct thread *td, struct freebsd6_freebsd32_ftruncate_args *uap) argument 1685 freebsd32_do_sendfile(struct thread *td, struct freebsd32_sendfile_args *uap, int compat) argument 1764 freebsd4_freebsd32_sendfile(struct thread *td, struct freebsd4_freebsd32_sendfile_args *uap) argument 1773 freebsd32_sendfile(struct thread *td, struct freebsd32_sendfile_args *uap) argument 1825 freebsd32_stat(struct thread *td, struct freebsd32_stat_args *uap) argument 1842 ofreebsd32_stat(struct thread *td, struct ofreebsd32_stat_args *uap) argument 1859 freebsd32_fstat(struct thread *td, struct freebsd32_fstat_args *uap) argument 1875 ofreebsd32_fstat(struct thread *td, struct ofreebsd32_fstat_args *uap) argument 1891 freebsd32_fstatat(struct thread *td, struct freebsd32_fstatat_args *uap) argument 1907 freebsd32_lstat(struct thread *td, struct freebsd32_lstat_args *uap) argument 1924 ofreebsd32_lstat(struct thread *td, struct ofreebsd32_lstat_args *uap) argument 1941 freebsd32_sysctl(struct thread *td, struct freebsd32_sysctl_args *uap) argument 1971 freebsd32_jail(struct thread *td, struct freebsd32_jail_args *uap) argument 2032 freebsd32_jail_set(struct thread *td, struct freebsd32_jail_set_args *uap) argument 2050 freebsd32_jail_get(struct thread *td, struct freebsd32_jail_get_args *uap) argument 2077 freebsd32_sigaction(struct thread *td, struct freebsd32_sigaction_args *uap) argument 2105 freebsd4_freebsd32_sigaction(struct thread *td, struct freebsd4_freebsd32_sigaction_args *uap) argument 2143 ofreebsd32_sigaction(struct thread *td, struct ofreebsd32_sigaction_args *uap) argument 2174 ofreebsd32_sigprocmask(struct thread *td, struct ofreebsd32_sigprocmask_args *uap) argument 2187 ofreebsd32_sigpending(struct thread *td, struct ofreebsd32_sigpending_args *uap) argument 2208 ofreebsd32_sigvec(struct thread *td, struct ofreebsd32_sigvec_args *uap) argument 2242 ofreebsd32_sigblock(struct thread *td, struct ofreebsd32_sigblock_args *uap) argument 2254 ofreebsd32_sigsetmask(struct thread *td, struct ofreebsd32_sigsetmask_args *uap) argument 2266 ofreebsd32_sigsuspend(struct thread *td, struct ofreebsd32_sigsuspend_args *uap) argument 2281 ofreebsd32_sigstack(struct thread *td, struct ofreebsd32_sigstack_args *uap) argument 2316 freebsd32_nanosleep(struct thread *td, struct freebsd32_nanosleep_args *uap) argument 2324 freebsd32_clock_nanosleep(struct thread *td, struct freebsd32_clock_nanosleep_args *uap) argument 2335 freebsd32_user_clock_nanosleep(struct thread *td, clockid_t clock_id, int flags, const struct timespec32 *ua_rqtp, struct timespec32 *ua_rmtp) argument 2362 freebsd32_clock_gettime(struct thread *td, struct freebsd32_clock_gettime_args *uap) argument 2379 freebsd32_clock_settime(struct thread *td, struct freebsd32_clock_settime_args *uap) argument 2396 freebsd32_clock_getres(struct thread *td, struct freebsd32_clock_getres_args *uap) argument 2414 freebsd32_ktimer_create(struct thread *td, struct freebsd32_ktimer_create_args *uap) argument 2442 freebsd32_ktimer_settime(struct thread *td, struct freebsd32_ktimer_settime_args *uap) argument 2463 freebsd32_ktimer_gettime(struct thread *td, struct freebsd32_ktimer_gettime_args *uap) argument 2479 freebsd32_clock_getcpuclockid2(struct thread *td, struct freebsd32_clock_getcpuclockid2_args *uap) argument 2493 freebsd32_thr_new(struct thread *td, struct freebsd32_thr_new_args *uap) argument 2526 freebsd32_thr_suspend(struct thread *td, struct freebsd32_thr_suspend_args *uap) argument 2570 freebsd32_sigqueue(struct thread *td, struct freebsd32_sigqueue_args *uap) argument 2589 freebsd32_sigtimedwait(struct thread *td, struct freebsd32_sigtimedwait_args *uap) argument 2631 freebsd32_sigwaitinfo(struct thread *td, struct freebsd32_sigwaitinfo_args *uap) argument 2656 freebsd32_cpuset_setid(struct thread *td, struct freebsd32_cpuset_setid_args *uap) argument 2665 freebsd32_cpuset_getid(struct thread *td, struct freebsd32_cpuset_getid_args *uap) argument 2674 freebsd32_cpuset_getaffinity(struct thread *td, struct freebsd32_cpuset_getaffinity_args *uap) argument 2683 freebsd32_cpuset_setaffinity(struct thread *td, struct freebsd32_cpuset_setaffinity_args *uap) argument 2692 freebsd32_nmount(struct thread *td, struct freebsd32_nmount_args *uap) argument 3021 freebsd32_kldstat(struct thread *td, struct freebsd32_kldstat_args *uap) argument 3054 freebsd32_posix_fallocate(struct thread *td, struct freebsd32_posix_fallocate_args *uap) argument 3065 freebsd32_posix_fadvise(struct thread *td, struct freebsd32_posix_fadvise_args *uap) argument 3102 freebsd32_procctl(struct thread *td, struct freebsd32_procctl_args *uap) argument 3192 freebsd32_fcntl(struct thread *td, struct freebsd32_fcntl_args *uap) argument 3220 freebsd32_ppoll(struct thread *td, struct freebsd32_ppoll_args *uap) argument 3248 freebsd32_sched_rr_get_interval(struct thread *td, struct freebsd32_sched_rr_get_interval_args *uap) argument [all...] |
/freebsd-11-stable/sys/mips/rmi/ |
H A D | fmn.c | 292 struct thread *td; local 307 td = mthd->threads[nt].thread; 319 thread_lock(td); 320 if (TD_AWAITING_INTR(td)) { 322 TD_CLR_IWAIT(td); 323 sched_add(td, SRQ_INTR); 326 thread_unlock(td); 334 struct thread *td; local 342 td = mthd->threads[tid].thread; 343 KASSERT(curthread == td, 388 struct thread *td; local [all...] |
/freebsd-11-stable/sys/dev/filemon/ |
H A D | filemon_wrapper.c | 96 filemon_wrapper_chdir(struct thread *td, struct chdir_args *uap) argument 101 if ((ret = sys_chdir(td, uap)) == 0) { 153 _filemon_wrapper_openat(struct thread *td, char *upath, int flags, int fd) argument 188 if (getvnode(td, fd, 190 vn_fullpath(td, fp->f_vnode, &atpath, 212 fdrop(fp, td); 218 filemon_wrapper_open(struct thread *td, struct open_args *uap) argument 222 if ((ret = sys_open(td, uap)) == 0) 223 _filemon_wrapper_openat(td, uap->path, uap->flags, AT_FDCWD); 229 filemon_wrapper_openat(struct thread *td, struc argument 240 filemon_wrapper_rename(struct thread *td, struct rename_args *uap) argument 266 _filemon_wrapper_link(struct thread *td, char *upath1, char *upath2) argument 288 filemon_wrapper_link(struct thread *td, struct link_args *uap) argument 299 filemon_wrapper_symlink(struct thread *td, struct symlink_args *uap) argument 310 filemon_wrapper_linkat(struct thread *td, struct linkat_args *uap) argument 345 filemon_wrapper_unlink(struct thread *td, struct unlink_args *uap) argument [all...] |
/freebsd-11-stable/sys/mips/nlm/ |
H A D | cms.c | 274 struct thread *td; local 280 td = mthd->thread; 287 thread_lock(td); 288 if (TD_AWAITING_INTR(td)) { 290 TD_CLR_IWAIT(td); 291 sched_add(td, SRQ_INTR); 295 thread_unlock(td); 304 struct thread *td; local 310 td = mthd->thread; 311 KASSERT(curthread == td, 369 struct thread *td; local [all...] |
/freebsd-11-stable/sys/compat/linux/ |
H A D | linux_socket.c | 608 linux_sendit(struct thread *td, int s, struct msghdr *mp, int flags, argument 622 error = kern_sendit(td, s, mp, linux_to_bsd_msg_flags(flags), control, 632 linux_check_hdrincl(struct thread *td, int s) argument 638 error = kern_getsockopt(td, s, IPPROTO_IP, IP_HDRINCL, 651 linux_sendto_hdrincl(struct thread *td, struct linux_sendto_args *linux_args) argument 690 error = linux_sendit(td, linux_args->s, &msg, linux_args->flags, 698 linux_socket(struct thread *td, struct linux_socket_args *args) argument 713 retval_socket = kern_socket(td, domain, type, args->protocol); 725 kern_setsockopt(td, td 749 linux_bind(struct thread *td, struct linux_bind_args *args) argument 767 linux_connect(struct thread *td, struct linux_connect_args *args) argument 811 linux_listen(struct thread *td, struct linux_listen_args *args) argument 818 linux_accept_common(struct thread *td, int s, l_uintptr_t addr, l_uintptr_t namelen, int flags) argument 868 linux_accept(struct thread *td, struct linux_accept_args *args) argument 876 linux_accept4(struct thread *td, struct linux_accept4_args *args) argument 884 linux_getsockname(struct thread *td, struct linux_getsockname_args *args) argument 904 linux_getpeername(struct thread *td, struct linux_getpeername_args *args) argument 924 linux_socketpair(struct thread *td, struct linux_socketpair_args *args) argument 968 linux_send(struct thread *td, struct linux_send_args *args) argument 996 linux_recv(struct thread *td, struct linux_recv_args *args) argument 1018 linux_sendto(struct thread *td, struct linux_sendto_args *args) argument 1040 linux_recvfrom(struct thread *td, struct linux_recvfrom_args *args) argument 1087 linux_sendmsg_common(struct thread *td, l_int s, struct l_msghdr *msghdr, l_uint flags) argument 1237 linux_sendmsg(struct thread *td, struct linux_sendmsg_args *args) argument 1245 linux_sendmmsg(struct thread *td, struct linux_sendmmsg_args *args) argument 1275 linux_recvmsg_common(struct thread *td, l_int s, struct l_msghdr *msghdr, l_uint flags, struct msghdr *msg) argument 1457 linux_recvmsg(struct thread *td, struct linux_recvmsg_args *args) argument 1466 linux_recvmmsg(struct thread *td, struct linux_recvmmsg_args *args) argument 1526 linux_shutdown(struct thread *td, struct linux_shutdown_args *args) argument 1533 linux_setsockopt(struct thread *td, struct linux_setsockopt_args *args) argument 1600 linux_getsockopt(struct thread *td, struct linux_getsockopt_args *args) argument 1718 linux_socketcall(struct thread *td, struct linux_socketcall_args *args) argument [all...] |
H A D | linux_signal.c | 58 static int linux_do_tkill(struct thread *td, struct thread *tdt, 115 linux_do_sigaction(struct thread *td, int linux_sig, l_sigaction_t *linux_nsa, argument 132 error = kern_sigaction(td, sig, nsa, osa, 0); 144 linux_signal(struct thread *td, struct linux_signal_args *args) argument 159 error = linux_do_sigaction(td, args->sig, &nsa, &osa); 160 td->td_retval[0] = (int)(intptr_t)osa.lsa_handler; 167 linux_rt_sigaction(struct thread *td, struct linux_rt_sigaction_args *args) argument 188 error = linux_do_sigaction(td, args->sig, 200 linux_do_sigprocmask(struct thread *td, int how, l_sigset_t *new, argument 207 td 236 linux_sigprocmask(struct thread *td, struct linux_sigprocmask_args *args) argument 269 linux_rt_sigprocmask(struct thread *td, struct linux_rt_sigprocmask_args *args) argument 303 linux_sgetmask(struct thread *td, struct linux_sgetmask_args *args) argument 321 linux_ssetmask(struct thread *td, struct linux_ssetmask_args *args) argument 346 linux_sigpending(struct thread *td, struct linux_sigpending_args *args) argument 373 linux_rt_sigpending(struct thread *td, struct linux_rt_sigpending_args *args) argument 401 linux_rt_sigtimedwait(struct thread *td, struct linux_rt_sigtimedwait_args *args) argument 482 linux_kill(struct thread *td, struct linux_kill_args *args) argument 510 linux_do_tkill(struct thread *td, struct thread *tdt, ksiginfo_t *ksi) argument 532 linux_tgkill(struct thread *td, struct linux_tgkill_args *args) argument 575 linux_tkill(struct thread *td, struct linux_tkill_args *args) argument 730 linux_rt_sigqueueinfo(struct thread *td, struct linux_rt_sigqueueinfo_args *args) argument 769 linux_rt_tgsigqueueinfo(struct thread *td, struct linux_rt_tgsigqueueinfo_args *args) argument [all...] |
/freebsd-11-stable/sys/netsmb/ |
H A D | smb_trantcp.c | 73 #define nb_sosend(so,m,flags,td) sosend(so, NULL, 0, m, 0, flags, td) 76 u_int8_t *rpcodep, struct thread *td); 77 static int smb_nbst_disconnect(struct smb_vc *vcp, struct thread *td); 145 nb_connect_in(struct nbpcb *nbp, struct sockaddr_in *to, struct thread *td) argument 151 td->td_ucred, td); 171 error = soconnect(so, (struct sockaddr*)to, td); 178 (error = nb_intr(nbp, td->td_proc)) != 0) { 193 smb_nbst_disconnect(nbp->nbp_vc, td); 198 nbssn_rq_request(struct nbpcb *nbp, struct thread *td) argument 289 nbssn_recvhdr(struct nbpcb *nbp, int *lenp, u_int8_t *rpcodep, int flags, struct thread *td) argument 329 nbssn_recv(struct nbpcb *nbp, struct mbuf **mpp, int *lenp, u_int8_t *rpcodep, struct thread *td) argument 452 smb_nbst_create(struct smb_vc *vcp, struct thread *td) argument 468 smb_nbst_done(struct smb_vc *vcp, struct thread *td) argument 484 smb_nbst_bind(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td) argument 517 smb_nbst_connect(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td) argument 563 smb_nbst_disconnect(struct smb_vc *vcp, struct thread *td) argument 583 smb_nbst_send(struct smb_vc *vcp, struct mbuf *m0, struct thread *td) argument 604 smb_nbst_recv(struct smb_vc *vcp, struct mbuf **mpp, struct thread *td) argument [all...] |
/freebsd-11-stable/sys/compat/svr4/ |
H A D | svr4_ioctl.c | 82 svr4_sys_ioctl(td, uap) 83 struct thread *td; 104 retval = td->td_retval; 107 error = fget(td, uap->fd, cap_rights_init(&rights, CAP_IOCTL), &fp); 112 fdrop(fp, td); 146 fdrop(fp, td); 150 fdrop(fp, td); 162 error = (*fun)(fp, td, retval, uap->fd, cmd, uap->data); 163 fdrop(fp, td);
|
H A D | svr4_resource.c | 122 svr4_sys_getrlimit(td, uap) 123 struct thread *td; 133 lim_rlimit(td, rl, &blim); 167 svr4_sys_setrlimit(td, uap) 168 struct thread *td; 182 lim_rlimit(td, rl, &curlim); 211 return (kern_setrlimit(td, rl, &blim)); 216 svr4_sys_getrlimit64(td, uap) 217 struct thread *td; 227 lim_rlimit(td, r [all...] |
H A D | svr4_sockio.c | 79 svr4_sock_ioctl(fp, td, retval, fd, cmd, data) 81 struct thread *td; 133 (caddr_t) &br, td->td_ucred, 134 td)) != 0) { 158 (caddr_t) &sc, td->td_ucred, 159 td)) != 0)
|
/freebsd-11-stable/sys/sys/ |
H A D | namei.h | 168 #define NDINIT(ndp, op, flags, segflg, namep, td) \ 169 NDINIT_ALL(ndp, op, flags, segflg, namep, AT_FDCWD, NULL, 0, td) 170 #define NDINIT_AT(ndp, op, flags, segflg, namep, dirfd, td) \ 171 NDINIT_ALL(ndp, op, flags, segflg, namep, dirfd, NULL, 0, td) 172 #define NDINIT_ATRIGHTS(ndp, op, flags, segflg, namep, dirfd, rightsp, td) \ 173 NDINIT_ALL(ndp, op, flags, segflg, namep, dirfd, NULL, rightsp, td) 174 #define NDINIT_ATVP(ndp, op, flags, segflg, namep, vp, td) \ 175 NDINIT_ALL(ndp, op, flags, segflg, namep, AT_FDCWD, vp, 0, td) 179 cap_rights_t *rightsp, struct thread *td);
|
/freebsd-11-stable/sys/amd64/ia32/ |
H A D | ia32_syscall.c | 102 ia32_set_syscall_retval(struct thread *td, int error) argument 105 cpu_set_syscall_retval(td, error); 109 ia32_fetch_syscall_args(struct thread *td) argument 122 p = td->td_proc; 123 frame = td->td_frame; 124 sa = &td->td_sa; 197 td->td_retval[0] = 0; 198 td->td_retval[1] = frame->tf_rdx; 209 struct thread *td; local 215 td [all...] |
/freebsd-11-stable/sys/compat/linuxkpi/common/src/ |
H A D | linux_schedule.c | 122 struct thread *td; local 125 td = task->task_thread; 126 PROC_LOCK(td->td_proc); 127 pending = td->td_siglist; 128 SIGSETOR(pending, td->td_proc->p_siglist); 129 SIGSETNAND(pending, td->td_sigmask); 130 PROC_UNLOCK(td->td_proc); 137 struct thread *td; local 140 td = task->task_thread; 141 PROC_LOCK(td 162 struct thread *td; local [all...] |
/freebsd-11-stable/sys/mips/mips/ |
H A D | stack_machdep.c | 130 stack_save_td(struct stack *st, struct thread *td) argument 134 if (TD_IS_SWAPPED(td)) 136 if (TD_IS_RUNNING(td)) 139 pc = td->td_pcb->pcb_regs.pc; 140 sp = td->td_pcb->pcb_regs.sp; 145 stack_save_td_running(struct stack *st, struct thread *td) argument
|
/freebsd-11-stable/sys/nfs/ |
H A D | nfs_nfssvc.c | 76 sys_nfssvc(struct thread *td, struct nfssvc_args *uap) argument 86 error = priv_check(td, PRIV_NFS_DAEMON); 93 error = (*nfsd_call_nfsserver)(td, uap); 96 error = (*nfsd_call_nfscl)(td, uap); 101 error = (*nfsd_call_nfscommon)(td, uap); 108 error = (*nfsd_call_nfsd)(td, uap);
|
/freebsd-11-stable/usr.sbin/pppctl/ |
H A D | pppctl.c | 280 struct thread_data *td; local 292 td = (struct thread_data *)v; 295 while ((l = SmartGets(td->edit, &len, td->ppp))) { 298 history(td->hist, H_ENTER, l); 300 history(td->hist, &hev, H_ENTER, l); 302 write(td->ppp, l, len); 303 if (Receive(td->ppp, REC_SHOW) != 0) 323 struct thread_data *td; local 327 td 576 struct thread_data td; local [all...] |
/freebsd-11-stable/sys/arm/arm/ |
H A D | machdep.c | 351 struct thread *td; local 354 td = curthread; 355 if (td->td_md.md_spinlock_count == 0) { 357 td->td_md.md_spinlock_count = 1; 358 td->td_md.md_saved_cspr = cspr; 360 td->td_md.md_spinlock_count++; 367 struct thread *td; local 370 td = curthread; 372 cspr = td->td_md.md_saved_cspr; 373 td 382 exec_setregs(struct thread *td, struct image_params *imgp, u_long stack) argument 400 get_vfpcontext(struct thread *td, mcontext_vfp_t *vfp) argument 420 set_vfpcontext(struct thread *td, mcontext_vfp_t *vfp) argument 438 arm_get_vfpstate(struct thread *td, void *args) argument 465 get_mcontext(struct thread *td, mcontext_t *mcp, int clear_ret) argument 507 set_mcontext(struct thread *td, mcontext_t *mcp) argument 572 struct thread *td; local [all...] |
/freebsd-11-stable/sys/dev/cxgbe/tom/ |
H A D | t4_tom.c | 145 toep->td = sc->tom_softc; 196 struct tom_data *td = toep->td; local 218 tp->tod = &td->tod; 228 mtx_lock(&td->toep_list_lock); 229 TAILQ_INSERT_HEAD(&td->toep_list, toep, link); 230 mtx_unlock(&td->toep_list_lock); 240 struct tom_data *td = toep->td; local 263 mtx_lock(&td 271 struct tom_data *td = toep->td; local 805 free_tom_data(struct adapter *sc, struct tom_data *td) argument 1010 struct tom_data *td = arg; local 1056 struct tom_data *td; local 1137 struct tom_data *td = sc->tom_softc; local [all...] |