KSEMSHR Shared Kernel Semaphore
┌─────────────────────────┬────────┬────────┬────────┬────────────────────┐ │Field Name │Off │Length │Type │Description │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │ks_bFlags │+0 │1 │B │ │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │ks_bType │+1 │1 │B │ │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │ks_Owner │+2 │2 │W │ │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │ks_cusPendingWriters │+4 │2 │W │ │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │ks_cusNest │+6 │2 │W │ │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │ks_cusReaders │+8 │2 │W │ │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │ks_cusPendingReaders │+a │2 │W │ │ └─────────────────────────┴────────┴────────┴────────┴────────────────────┘
KSEMMTX MUTEX Kernel Semaphore
┌─────────────────────────┬────────┬────────┬────────┬────────────────────┐ │Field Name │Off │Length │Type │Description │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │ksm_bFlags │+0 │1 │B │ │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │ksm_bType │+1 │1 │B │ │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │ksm_Owner │+2 │2 │W │ │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │ksm_cusPendingWriters │+4 │2 │W │ │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │ksm_cusNest │+6 │2 │W │ │ └─────────────────────────┴────────┴────────┴────────┴────────────────────┘
KSEMEVT Event Kernel Semaphore
┌─────────────────────────┬────────┬────────┬────────┬────────────────────┐ │Field Name │Off │Length │Type │Description │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │kse_bFlags │+0 │1 │B │ │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │kse_bType │+1 │1 │B │ │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │kse_Owner │+2 │2 │W │ │ ├─────────────────────────┼────────┼────────┼────────┼────────────────────┤ │kse_cusPendingWriters │+4 │2 │W │ │ └─────────────────────────┴────────┴────────┴────────┴────────────────────┘