#include <kern/stackshot_kpi.h>

kern/stackshot_kpi.h Kernel.framework

includes: sys/cdefs.h
3 enums · 3 typedefs · 2 functions

enumstackshot_device_lock_flags_t

underlying type uint8_t
stackshot_device_after_first_unlock1

typedefstackshot_device_lock_flags_t

typedef enum stackshot_device_lock_flags_t stackshot_device_lock_flags_t;

enumstackshot_passcode_status_t

underlying type uint8_t
stackshot_passcode_unset0
stackshot_passcode_set1
stackshot_passcode_unknown2

typedefstackshot_passcode_status_t

typedef enum stackshot_passcode_status_t stackshot_passcode_status_t;

enumstackshot_device_lock_state_t

underlying type uint8_t
stackshot_lock_state_device_unlocked0
stackshot_lock_state_device_locked1
stackshot_lock_state_unknown2

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.