#include <kern/stackshot_kpi.h>
kern/stackshot_kpi.h
enumstackshot_device_lock_flags_t
| stackshot_device_after_first_unlock | 1 |
typedefstackshot_device_lock_flags_t
typedef enum stackshot_device_lock_flags_t stackshot_device_lock_flags_t;
enumstackshot_passcode_status_t
| stackshot_passcode_unset | 0 | |
| stackshot_passcode_set | 1 | |
| stackshot_passcode_unknown | 2 |
typedefstackshot_passcode_status_t
typedef enum stackshot_passcode_status_t stackshot_passcode_status_t;
enumstackshot_device_lock_state_t
| stackshot_lock_state_device_unlocked | 0 | |
| stackshot_lock_state_device_locked | 1 | |
| stackshot_lock_state_unknown | 2 |
typedefstackshot_device_lock_state_t
typedef enum stackshot_device_lock_state_t stackshot_device_lock_state_t;
functionstackshot_update_lock_state
void stackshot_update_lock_state(stackshot_device_lock_state_t lock_state)
▾
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK kern/stackshot_kpi.h; not present in available xnu source
Records the device lock state to be reported in subsequent stackshots. lock_state is one of stackshot_lock_state_device_unlocked (at least one user in the group is unlocked), stackshot_lock_state_device_locked (all users locked), or stackshot_lock_state_unknown. Implementation not present in the available xnu sources; contract taken from the SDK header.
functionstackshot_update_passcode_status
void stackshot_update_passcode_status(stackshot_passcode_status_t primary_user_status)
▾
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK kern/stackshot_kpi.h; not present in available xnu source
Records the primary user's passcode status to be reported in subsequent stackshots: stackshot_passcode_unset, stackshot_passcode_set, or stackshot_passcode_unknown. Implementation not present in the available xnu sources; contract taken from the SDK header.