/freebsd-11-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_state.c | 1891 /* td(I) - pointer to TCP data held as part of the state */ 1897 ipf_tcpoptions(softs, fin, tcp, td) 1901 tcpdata_t *td; 1953 td->td_winscale = i; 1954 td->td_winflags |= TCP_WSCALE_SEEN| 1968 td->td_maxseg = i; 1974 td->td_winflags |= TCP_SACK_PERMIT;
|
H A D | mlfk_ipl.c | 134 static int ipfpoll(struct cdev *dev, int events, struct thread *td); 148 static int ipfpoll(dev_t dev, int events, struct proc *td); 430 ipfpoll(struct cdev *dev, int events, struct thread *td) argument 432 ipfpoll(dev_t dev, int events, struct proc *td) 443 CURVNET_SET(TD_TO_VNET(td)); 471 selrecord(td, &V_ipfmain.ipf_selwait[unit]);
|
H A D | ip_sync.c | 304 /* td(IO) - pointer to data to be converted. */ 310 ipf_sync_tcporder(way, td) 312 tcpdata_t *td; 315 td->td_maxwin = htons(td->td_maxwin); 316 td->td_end = htonl(td->td_end); 317 td->td_maxend = htonl(td->td_maxend); 319 td [all...] |
/freebsd-11-stable/sys/compat/linux/ |
H A D | linux_futex.c | 671 futex_atomic_op(struct thread *td, int encoded_op, uint32_t *uaddr) argument 679 LIN_SDT_PROBE3(futex, futex_atomic_op, entry, td, encoded_op, uaddr); 746 linux_sys_futex(struct thread *td, struct linux_sys_futex_args *args) argument 756 LIN_SDT_PROBE2(futex, linux_sys_futex, entry, td, args); 863 td->td_retval[0] = 0; 868 td->td_retval[0] = futex_wake(f, args->val, args->val3); 951 td->td_retval[0] = futex_requeue(f, nrwake, f2, nrrequeue); 991 op_ret = futex_atomic_op(td, args->val3, args->uaddr2); 1024 td->td_retval[0] = ret; 1029 pem = pem_find(td 1131 linux_set_robust_list(struct thread *td, struct linux_set_robust_list_args *args) argument 1151 linux_get_robust_list(struct thread *td, struct linux_get_robust_list_args *args) argument 1288 release_futexes(struct thread *td, struct linux_emuldata *em) argument [all...] |
/freebsd-11-stable/sys/netgraph/ |
H A D | ng_base.c | 3206 struct thread *td; local 3236 if (kproc_kthread_add(ngthread, NULL, &p, &td,
|
/freebsd-11-stable/sys/sys/ |
H A D | taskqueue.h | 99 int taskqueue_member(struct taskqueue *queue, struct thread *td);
|
H A D | filedesc.h | 150 #define falloc(td, resultfp, resultfd, flags) \ 151 falloc_caps(td, resultfp, resultfd, flags, NULL) 161 int closef(struct file *fp, struct thread *td); 162 int dupfdopen(struct thread *td, struct filedesc *fdp, int dfd, int mode, 164 int falloc_caps(struct thread *td, struct file **resultfp, int *resultfd, 166 int falloc_noinstall(struct thread *td, struct file **resultfp); 169 int finstall(struct thread *td, struct file *fp, int *resultfd, int flags, 171 int fdalloc(struct thread *td, int minfd, int *result); 172 int fdallocn(struct thread *td, int minfd, int *fds, int n); 173 int fdcheckstd(struct thread *td); [all...] |
/freebsd-11-stable/sys/fs/nfsserver/ |
H A D | nfs_nfsdkrpc.c | 319 struct thread *td = curthread; local 380 nfsrvd_dorpc(nd, isdgram, tagstr, taglen, minorvers, td); 479 nfsrvd_nfsd(struct thread *td, struct nfsd_nfsd_args *args) argument 500 p = td->td_proc;
|
/freebsd-11-stable/sys/vm/ |
H A D | vm_fault.c | 502 struct thread *td; local 505 td = curthread; 506 if ((td->td_pflags & TDP_NOFAULTING) != 0) 509 if (map != kernel_map && KTRPOINT(td, KTR_FAULT)) 515 if (map != kernel_map && KTRPOINT(td, KTR_FAULTEND))
|
/freebsd-11-stable/sys/kern/ |
H A D | vfs_mount.c | 73 static int vfs_domount(struct thread *td, const char *fstype, char *fspath, 379 sys_nmount(struct thread *td, struct nmount_args *uap) argument 423 error = vfs_donmount(td, flags, auio); 567 vfs_donmount(struct thread *td, uint64_t fsflags, struct uio *fsoptions) argument 714 error = vfs_domount(td, fstype, fspath, fsflags, &optlist); 726 error = vfs_domount(td, fstype, fspath, fsflags, &optlist); 761 sys_mount(struct thread *td, struct mount_args *uap) argument 795 vfsp = vfs_byname_kld(fstype, td, &error); 817 struct thread *td, /* Calling thread. */ 833 if (vp == td 816 vfs_domount_first( struct thread *td, struct vfsconf *vfsp, char *fspath, struct vnode *vp, uint64_t fsflags, struct vfsoptlist **optlist ) argument 940 vfs_domount_update( struct thread *td, struct vnode *vp, uint64_t fsflags, struct vfsoptlist **optlist ) argument 1093 vfs_domount( struct thread *td, const char *fstype, char *fspath, uint64_t fsflags, struct vfsoptlist **optlist ) argument 1195 sys_unmount(struct thread *td, struct unmount_args *uap) argument 1323 dounmount(struct mount *mp, int flags, struct thread *td) argument [all...] |
H A D | kern_rmlock.c | 138 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 D | kern_jail.c | 124 static int do_jail_attach(struct thread *td, struct prison *pr); 256 sys_jail(struct thread *td, struct jail_args *uap) argument 301 return (kern_jail(td, &j)); 305 kern_jail(struct thread *td, struct jail *j) argument 334 opt.uio_td = td; 337 if (!jailed(td->td_ucred)) { 453 error = kern_jail_set(td, &opt, JAIL_CREATE | JAIL_ATTACH); 467 sys_jail_set(struct thread *td, struct jail_set_args *uap) argument 479 error = kern_jail_set(td, auio, uap->flags); 485 kern_jail_set(struct thread *td, struc argument 1928 sys_jail_get(struct thread *td, struct jail_get_args *uap) argument 1949 kern_jail_get(struct thread *td, struct uio *optuio, int flags) argument 2236 sys_jail_remove(struct thread *td, struct jail_remove_args *uap) argument 2342 sys_jail_attach(struct thread *td, struct jail_attach_args *uap) argument 2379 do_jail_attach(struct thread *td, struct prison *pr) 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_fork.c | 104 sys_fork(struct thread *td, struct fork_args *uap) argument 112 error = fork1(td, &fr); 114 td->td_retval[0] = pid; 115 td->td_retval[1] = 0; 122 sys_pdfork(struct thread *td, struct pdfork_args *uap) argument 137 error = fork1(td, &fr); 139 td->td_retval[0] = pid; 140 td->td_retval[1] = 0; 148 sys_vfork(struct thread *td, struct vfork_args *uap) argument 156 error = fork1(td, 165 sys_rfork(struct thread *td, struct rfork_args *uap) argument 345 fork_norfproc(struct thread *td, int flags) argument 395 do_fork(struct thread *td, struct fork_req *fr, struct proc *p2, struct thread *td2, struct vmspace *vm2, struct file *fp_procdesc) argument 834 fork1(struct thread *td, struct fork_req *fr) argument 1058 struct thread *td; local 1111 fork_return(struct thread *td, struct trapframe *frame) argument [all...] |
H A D | kern_event.c | 99 struct thread *td, int waitok); 103 static void kqueue_drain(struct kqueue *kq, struct thread *td); 110 struct kevent *keva, struct thread *td); 138 static void knote_drop(struct knote *kn, struct thread *td); 906 sys_kqueue(struct thread *td, struct kqueue_args *uap) argument 909 return (kern_kqueue(td, 0, NULL)); 923 kern_kqueue(struct thread *td, int flags, struct filecaps *fcaps) argument 931 fdp = td->td_proc->p_fd; 932 cred = td->td_ucred; 933 if (!chgkqcnt(cred->cr_ruidinfo, 1, lim_cur(td, RLIMIT_KQUEUE 970 sys_kevent(struct thread *td, struct kevent_args *uap) argument 1046 kern_kevent(struct thread *td, int fd, int nchanges, int nevents, struct kevent_copyops *k_ops, const struct timespec *timeout) argument 1069 kqueue_kevent(struct kqueue *kq, struct thread *td, int nchanges, int nevents, struct kevent_copyops *k_ops, const struct timespec *timeout) argument 1110 kern_kevent_fp(struct thread *td, struct file *fp, int nchanges, int nevents, struct kevent_copyops *k_ops, const struct timespec *timeout) argument 1129 kern_kevent_anonymous(struct thread *td, int nevents, struct kevent_copyops *k_ops) argument 1234 kqueue_register(struct kqueue *kq, struct kevent *kev, struct thread *td, int waitok) argument 1650 kqueue_scan(struct kqueue *kq, int maxevents, struct kevent_copyops *k_ops, const struct timespec *tsp, struct kevent *keva, struct thread *td) argument 1853 kqueue_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) argument 1901 kqueue_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument 1928 kqueue_stat(struct file *fp, struct stat *st, struct ucred *active_cred, struct thread *td) argument 1945 kqueue_drain(struct kqueue *kq, struct thread *td) argument 2031 kqueue_close(struct file *fp, struct thread *td) argument 2371 knlist_cleardel(struct knlist *knl, struct thread *td, int islocked, int killkn) argument 2433 knote_fdclose(struct thread *td, int fd) argument 2502 knote_drop(struct knote *kn, struct thread *td) argument 2589 kqfd_register(int fd, struct kevent *kev, struct thread *td, int waitok) argument [all...] |
/freebsd-11-stable/sys/compat/linuxkpi/common/src/ |
H A D | linux_rcu.c | 268 struct thread *td = curthread; local 289 thread_unlock(td); 291 thread_lock(td); 294 sched_prio(td, prio); 301 * pointed to by TDQ_LOCKPTR(td). Else a 304 thread_unlock(td); 305 thread_lock(td); 314 sched_prio(td, 0); 315 sched_bind(td, record->cpuid); 322 struct thread *td; local [all...] |
/freebsd-11-stable/sys/dev/netmap/ |
H A D | netmap_freebsd.c | 1140 netmap_close(struct cdev *dev, int fflag, int devtype, struct thread *td) argument 1143 nm_prinf("dev %p fflag 0x%x devtype %d td %p", 1144 dev, fflag, devtype, td); 1150 netmap_open(struct cdev *dev, int oflags, int devtype, struct thread *td) argument 1158 (void)td; 1294 nm_prinf("nm_kthread started td %p", nmk->worker); 1366 nm_os_selrecord(struct thread *td, struct nm_selinfo *si) argument 1368 selrecord(td, &si->si); 1494 freebsd_netmap_poll(struct cdev *cdevi __unused, int events, struct thread *td) argument 1500 return netmap_poll(priv, events, td); 1504 freebsd_netmap_ioctl(struct cdev *dev __unused, u_long cmd, caddr_t data, int ffla __unused, struct thread *td) argument [all...] |
H A D | netmap.c | 2418 struct thread *td, int nr_body_is_user) 2916 return netmap_ioctl_legacy(priv, cmd, data, td); 3231 * On linux, arguments are really pwait, the poll table, and 'td' is struct file * 2417 netmap_ioctl(struct netmap_priv_d *priv, u_long cmd, caddr_t data, struct thread *td, int nr_body_is_user) argument
|
/freebsd-11-stable/contrib/libcxxrt/ |
H A D | libelftc_dem_gnu3.c | 538 struct type_delimit td; local 579 td.paren = false; 580 td.firstp = true; 609 if (!cpp_demangle_read_type(&ddata, &td)) 634 if (td.paren && !VEC_PUSH_STR(&ddata.output, ")")) 1637 struct type_delimit td; local 1717 td.paren = false; 1718 td.firstp = true; 1722 if (!cpp_demangle_read_type(ddata, &td)) 1730 if (td 1987 struct type_delimit td; local 2835 cpp_demangle_read_type(struct cpp_demangle_data *ddata, struct type_delimit *td) argument [all...] |
/freebsd-11-stable/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_fwdump.c | 385 struct thread *td) 384 mlx5_ctl_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread *td) argument
|
/freebsd-11-stable/sys/ufs/ffs/ |
H A D | ffs_vnops.c | 1151 ffs_rdextattr(u_char **p, struct vnode *vp, struct thread *td, int extra) argument 1179 luio.uio_td = td; 1220 ffs_open_ea(struct vnode *vp, struct ucred *cred, struct thread *td) argument 1235 error = ffs_rdextattr(&ip->i_ea_area, vp, td, 0); 1251 ffs_close_ea(struct vnode *vp, int commit, struct ucred *cred, struct thread *td) argument 1280 luio.uio_td = td;
|
/freebsd-11-stable/sys/fs/msdosfs/ |
H A D | msdosfs_vnops.c | 338 struct thread *td = curthread; local 469 error = vn_utimes_perm(vp, vap, cred, td);
|
/freebsd-11-stable/sys/powerpc/aim/ |
H A D | mmu_oea.c | 993 moea_activate(mmu_t mmu, struct thread *td) argument 1001 pm = &td->td_proc->p_vmspace->vm_pmap; 1007 mtsrin(USER_SR << ADDR_SR_SHFT, td->td_pcb->pcb_cpu.aim.usr_vsid); 1011 moea_deactivate(mmu_t mmu, struct thread *td) argument 1015 pm = &td->td_proc->p_vmspace->vm_pmap;
|
H A D | aim_machdep.c | 404 ptrace_single_step(struct thread *td) argument 408 tf = td->td_frame; 415 ptrace_clear_single_step(struct thread *td) argument 419 tf = td->td_frame;
|
/freebsd-11-stable/sys/dev/usb/quirk/ |
H A D | usb_quirk.c | 775 int fflag, struct thread *td) 774 usb_quirk_ioctl(unsigned long cmd, caddr_t data, int fflag, struct thread *td) argument
|