#include <sys/resource_private.h>

sys/resource_private.h Kernel.framework

includes: os/base.h, Kernel/stdint.h, sys/cdefs.h
33 macros · 4 structs · 2 enums · 2 typedefs

enumthread_selfcounts_kind_t

The kind of counters to copy into the destination buffer with `thread_selfcounts`.
underlying type uint32_t
THSC_CPI1
THSC_CPI_PER_PERF_LEVEL2
THSC_TIME_CPI3
THSC_TIME_CPI_PER_PERF_LEVEL4
THSC_TIME_ENERGY_CPI5
THSC_TIME_ENERGY_CPI_PER_PERF_LEVEL6

typedefthread_selfcounts_kind_t

typedef enum thread_selfcounts_kind_t thread_selfcounts_kind_t;

structthsc_cpi

The data structure expected by `THSC_CPI*`.
size 16, align 8
uint64_ttcpi_instructions
uint64_ttcpi_cycles

structthsc_time_cpi

The data structure expected by `THSC_TIME_CPI*`.
size 32, align 8
uint64_tttci_instructions
uint64_tttci_cycles
uint64_tttci_user_time_mach
uint64_tttci_system_time_mach

structthsc_time_energy_cpi

The data structure expected by `THSC_TIME_ENERGY_CPI*`.
size 40, align 8
uint64_tttec_instructions
uint64_tttec_cycles
uint64_tttec_user_time_mach
uint64_tttec_system_time_mach
uint64_tttec_energy_nj

macroPRIO_DARWIN_GPU

#define PRIO_DARWIN_GPU 5
Second argument is a PID

enumdarwin_gpu_role_t

underlying type uint8_t
PRIO_DARWIN_GPU_UNKNOWN0
PRIO_DARWIN_GPU_ALLOW1
PRIO_DARWIN_GPU_DENY2
PRIO_DARWIN_GPU_BACKGROUND3
PRIO_DARWIN_GPU_UTILITY4
PRIO_DARWIN_GPU_UI_NON_FOCAL5
PRIO_DARWIN_GPU_UI6
PRIO_DARWIN_GPU_UI_FOCAL7

typedefdarwin_gpu_role_t

typedef enum darwin_gpu_role_t darwin_gpu_role_t;

macroPRIO_DARWIN_ROLE

#define PRIO_DARWIN_ROLE 6
Second argument is a PID

macroPRIO_DARWIN_ROLE_DEFAULT

#define PRIO_DARWIN_ROLE_DEFAULT 0x0
Reset to default state

macroPRIO_DARWIN_ROLE_UI_FOCAL

#define PRIO_DARWIN_ROLE_UI_FOCAL 0x1
On screen, focal UI

macroPRIO_DARWIN_ROLE_UI

#define PRIO_DARWIN_ROLE_UI 0x2
On screen UI, focal unknown

macroPRIO_DARWIN_ROLE_NON_UI

#define PRIO_DARWIN_ROLE_NON_UI 0x3
Off screen, non-focal UI

macroPRIO_DARWIN_ROLE_UI_NON_FOCAL

#define PRIO_DARWIN_ROLE_UI_NON_FOCAL 0x4
On screen, non-focal UI

macroPRIO_DARWIN_ROLE_TAL_LAUNCH

#define PRIO_DARWIN_ROLE_TAL_LAUNCH 0x5
Throttled-launch (for OS X TAL resume)

macroPRIO_DARWIN_ROLE_DARWIN_BG

#define PRIO_DARWIN_ROLE_DARWIN_BG 0x6
Throttled for running in the background

macroPRIO_DARWIN_ROLE_USER_INIT

#define PRIO_DARWIN_ROLE_USER_INIT 0x7
Off-screen doing user-initiated work

macroPRIO_DARWIN_GAME_MODE

#define PRIO_DARWIN_GAME_MODE 7
Second argument is a PID

macroPRIO_DARWIN_CARPLAY_MODE

#define PRIO_DARWIN_CARPLAY_MODE 8
Second argument is a PID

macroPRIO_DARWIN_RUNAWAY_MITIGATION

#define PRIO_DARWIN_RUNAWAY_MITIGATION 9
Second argument is a PID

macroPRIO_DARWIN_GAME_MODE_OFF

#define PRIO_DARWIN_GAME_MODE_OFF 0x0

macroPRIO_DARWIN_GAME_MODE_ON

#define PRIO_DARWIN_GAME_MODE_ON 0x1

macroPRIO_DARWIN_CARPLAY_MODE_OFF

#define PRIO_DARWIN_CARPLAY_MODE_OFF 0x0

macroPRIO_DARWIN_CARPLAY_MODE_ON

#define PRIO_DARWIN_CARPLAY_MODE_ON 0x1

macroPRIO_DARWIN_RUNAWAY_MITIGATION_OFF

#define PRIO_DARWIN_RUNAWAY_MITIGATION_OFF 0x0

macroPRIO_DARWIN_RUNAWAY_MITIGATION_ON

#define PRIO_DARWIN_RUNAWAY_MITIGATION_ON 0x1

macroIOMON_ENABLE

Flags for I/O monitor control.
#define IOMON_ENABLE 0x01

macroIOMON_DISABLE

#define IOMON_DISABLE 0x02

macroIOPOL_TYPE_VFS_HFS_CASE_SENSITIVITY

Private I/O type
#define IOPOL_TYPE_VFS_HFS_CASE_SENSITIVITY 1

macroIOPOL_TYPE_VFS_NOCACHE_WRITE_FS_BLKSIZE

#define IOPOL_TYPE_VFS_NOCACHE_WRITE_FS_BLKSIZE 12

macroIOPOL_TYPE_VFS_SUPPORT_LONG_PATHS

#define IOPOL_TYPE_VFS_SUPPORT_LONG_PATHS 13

macroIOPOL_VFS_HFS_CASE_SENSITIVITY_DEFAULT

#define IOPOL_VFS_HFS_CASE_SENSITIVITY_DEFAULT 0

macroIOPOL_VFS_HFS_CASE_SENSITIVITY_FORCE_CASE_SENSITIVE

#define IOPOL_VFS_HFS_CASE_SENSITIVITY_FORCE_CASE_SENSITIVE 1

macroIOPOL_VFS_SUPPORT_LONG_PATHS_DEFAULT

#define IOPOL_VFS_SUPPORT_LONG_PATHS_DEFAULT 0

macroIOPOL_VFS_SUPPORT_LONG_PATHS_ON

#define IOPOL_VFS_SUPPORT_LONG_PATHS_ON 1

macroIOPOL_CMD_GET

the command to iopolicysys()
#define IOPOL_CMD_GET 0x00000001
Get I/O policy

macroIOPOL_CMD_SET

#define IOPOL_CMD_SET 0x00000002
Set I/O policy

struct_iopol_param_t

Second parameter to iopolicysys()
size 12, align 4
intiop_scopecurrent process or a thread
intiop_iotype
intiop_policy