+ struct waitq_set *uu_wqset; /* waitq state cached across select calls */
+ size_t uu_wqstate_sz; /* ...size of uu_wqset buffer */
+ int uu_flag;
+ sigset_t uu_siglist; /* signals pending for the thread */
+ sigset_t uu_sigwait; /* sigwait on this thread*/
+ sigset_t uu_sigmask; /* signal mask for the thread */
+ sigset_t uu_oldmask; /* signal mask saved before sigpause */
+ sigset_t uu_vforkmask; /* saved signal mask during vfork */
+ struct vfs_context uu_context; /* thread + cred */
+
+ TAILQ_ENTRY(uthread) uu_list; /* List of uthreads in proc */
+
+ struct kaudit_record *uu_ar; /* audit record */
+ struct task* uu_aio_task; /* target task for async io */
+
+ lck_mtx_t *uu_mtx;
+
+ lck_spin_t uu_rethrottle_lock; /* locks was_rethrottled and is_throttled */
+ TAILQ_ENTRY(uthread) uu_throttlelist; /* List of uthreads currently throttled */
+ void * uu_throttle_info; /* pointer to throttled I/Os info */
+ int uu_on_throttlelist;
+ int uu_lowpri_window;
+ boolean_t uu_was_rethrottled;
+ boolean_t uu_is_throttled;
+ boolean_t uu_throttle_bc;
+
+ u_int32_t uu_network_marks; /* network control flow marks */
+
+ struct kern_sigaltstack uu_sigstk;
+ vnode_t uu_vreclaims;
+ vnode_t uu_cdir; /* per thread CWD */
+ int uu_dupfd; /* fd in fdesc_open/dupfdopen */
+ int uu_defer_reclaims;
+
+ struct kqueue *uu_kqueue_bound; /* kqueue we are bound to service */
+ unsigned int uu_kqueue_qos_index; /* qos index we are bound to service */
+ unsigned int uu_kqueue_flags; /* the flags we are using */
+ boolean_t uu_kqueue_override_is_sync; /* sync qos override applied to servicer */
+
+#ifdef JOE_DEBUG
+ int uu_iocount;
+ int uu_vpindex;
+ void * uu_vps[32];
+ void * uu_pcs[32][10];
+#endif
+ int uu_proc_refcount;
+#if PROC_REF_DEBUG
+#define NUM_PROC_REFS_TO_TRACK 32
+#define PROC_REF_STACK_DEPTH 10
+ int uu_pindex;
+ void * uu_proc_ps[NUM_PROC_REFS_TO_TRACK];
+ uintptr_t uu_proc_pcs[NUM_PROC_REFS_TO_TRACK][PROC_REF_STACK_DEPTH];
+#endif
+
+#if CONFIG_DTRACE
+ uint32_t t_dtrace_errno; /* Most recent errno */
+ siginfo_t t_dtrace_siginfo;
+ uint64_t t_dtrace_resumepid; /* DTrace's pidresume() pid */
+ uint8_t t_dtrace_stop; /* indicates a DTrace desired stop */
+ uint8_t t_dtrace_sig; /* signal sent via DTrace's raise() */
+
+ union __tdu {
+ struct __tds {
+ uint8_t _t_dtrace_on; /* hit a fasttrap tracepoint */
+ uint8_t _t_dtrace_step; /* about to return to kernel */
+ uint8_t _t_dtrace_ret; /* handling a return probe */
+ uint8_t _t_dtrace_ast; /* saved ast flag */
+#if __sol64 || defined(__APPLE__)
+ uint8_t _t_dtrace_reg; /* modified register */
+#endif
+ } _tds;
+ u_int32_t _t_dtrace_ft; /* bitwise or of these flags */
+ } _tdu;
+#define t_dtrace_ft _tdu._t_dtrace_ft
+#define t_dtrace_on _tdu._tds._t_dtrace_on
+#define t_dtrace_step _tdu._tds._t_dtrace_step
+#define t_dtrace_ret _tdu._tds._t_dtrace_ret
+#define t_dtrace_ast _tdu._tds._t_dtrace_ast
+#if __sol64 || defined(__APPLE__)
+#define t_dtrace_reg _tdu._tds._t_dtrace_reg
+#endif
+
+ user_addr_t t_dtrace_pc; /* DTrace saved pc from fasttrap */
+ user_addr_t t_dtrace_npc; /* DTrace next pc from fasttrap */
+ user_addr_t t_dtrace_scrpc; /* DTrace per-thread scratch location */
+ user_addr_t t_dtrace_astpc; /* DTrace return sequence location */
+
+ struct dtrace_ptss_page_entry* t_dtrace_scratch; /* scratch space entry */
+
+#if __sol64 || defined(__APPLE__)
+ uint64_t t_dtrace_regv; /* DTrace saved reg from fasttrap */
+#endif
+ void * t_dtrace_syscall_args;
+#endif /* CONFIG_DTRACE */
+ void * uu_threadlist;
+ char * pth_name;
+
+ /* Document Tracking struct used to track a "tombstone" for a document */
+ struct doc_tombstone *t_tombstone;
+
+ struct os_reason *uu_exit_reason;