Back to Darwin Xnu

Policy Fifo Info

osfmk/man/policy_fifo_info.html

latest1.6 KB
Original Source

policy_fifo_info


Structure - Specifies information associated with the system's First-In-First-Out scheduling policy.

SYNOPSIS

**struct policy\_fifo\_limit**** { ****int** max\_priority **;**** }; ****struct policy\_fifo\_base**** { ****int** base\_priority **;**** }; ****struct policy\_fifo\_info**** { ****int** max\_priority **;**** int **base\_priority** ; ****boolean\_t** depressed **;**** int **depress\_priority** ; ****};**

FIELDS

max_priorityMaximum scheduling priority

base_priorityScheduling priority

depressedTrue if scheduling priority is depressed

depress_priorityScheduling priority from which depressed

DESCRIPTION

The policy_fifo_info structure defines the first-in-first-out scheduling policy information. FIFO threads have two priorities associated with them by the system:

  • A priority value which can be set by the thread to any value up to a maximum priority. Newly created threads obtain their priority from their task.

Functions: thread_info, task_info, processor_set_info, processor_set_policy_control, processor_set_policy_disable, processor_set_policy_enable, task_policy, thread_policy, thread_set_policy.

Data Structures: policy_rr_info, policy_timeshare_info.