X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d9a64523371fa019c4575bb400cbbc3a50ac9903..f427ee49d309d8fc33ebf3042c3a775f2f530ded:/osfmk/kern/block_hint.h diff --git a/osfmk/kern/block_hint.h b/osfmk/kern/block_hint.h index f379d0850..f512457c2 100644 --- a/osfmk/kern/block_hint.h +++ b/osfmk/kern/block_hint.h @@ -26,11 +26,11 @@ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ -#ifndef _KERN_BLOCK_HINT_H_ +#ifndef _KERN_BLOCK_HINT_H_ #define _KERN_BLOCK_HINT_H_ typedef enum thread_snapshot_wait_flags { - kThreadWaitNone = 0x00, + kThreadWaitNone = 0x00, kThreadWaitKernelMutex = 0x01, kThreadWaitPortReceive = 0x02, kThreadWaitPortSetReceive = 0x03, @@ -48,15 +48,18 @@ typedef enum thread_snapshot_wait_flags { kThreadWaitParkedWorkQueue = 0x0f, kThreadWaitWorkloopSyncWait = 0x10, kThreadWaitOnProcess = 0x11, + kThreadWaitSleepWithInheritor = 0x12, + kThreadWaitEventlink = 0x13, + kThreadWaitCompressor = 0x14, } __attribute__((packed)) block_hint_t; _Static_assert(sizeof(block_hint_t) <= sizeof(short), - "block_hint_t must fit within a short"); + "block_hint_t must fit within a short"); #ifdef XNU_KERNEL_PRIVATE +struct turnstile; struct waitq; -struct stackshot_thread_waitinfo; typedef struct stackshot_thread_waitinfo thread_waitinfo_t; /* Used for stackshot_thread_waitinfo_unsafe */ @@ -70,6 +73,9 @@ extern void kdp_pthread_find_owner(thread_t thread, thread_waitinfo_t *waitinfo) extern void *kdp_pthread_get_thread_kwq(thread_t thread); extern void kdp_workloop_sync_wait_find_owner(thread_t thread, event64_t event, thread_waitinfo_t *waitinfo); extern void kdp_wait4_find_process(thread_t thread, event64_t event, thread_waitinfo_t *waitinfo); +extern void kdp_sleep_with_inheritor_find_owner(struct waitq * waitq, __unused event64_t event, thread_waitinfo_t * waitinfo); +extern void kdp_turnstile_fill_tsinfo(struct turnstile *ts, thread_turnstileinfo_t *tsinfo); +void kdp_eventlink_find_owner(struct waitq *waitq, event64_t event, thread_waitinfo_t *waitinfo); #endif /* XNU_KERNEL_PRIVATE */