Lines Matching defs:policy
190 static void throttle_info_update_internal(struct _throttle_io_info_t *info, uthread_t ut, int policy, int flags, boolean_t isssd);
191 static int throttle_get_thread_throttle_level(uthread_t ut, int policy);
963 * look for threads that have had their IO policy changed
1211 throttle_get_thread_throttle_level(uthread_t ut, int policy)
1218 if (policy == -1)
1219 policy = proc_get_diskacc(ut->uu_thread);
1221 switch (policy) {
1237 printf("unknown I/O policy %d", policy);
1415 * set a kernel thread's IO policy. policy can be:
1420 void throttle_set_thread_io_policy(int policy)
1422 proc_apply_thread_selfdiskacc(policy);
1456 void throttle_info_update_internal(struct _throttle_io_info_t *info, uthread_t ut, int policy, int flags, boolean_t isssd)
1466 thread_throttle_level = throttle_get_thread_throttle_level(ut, policy);
1565 int throttle_info_io_will_be_throttled(void * throttle_info, int policy)
1573 switch (policy) {
1625 int policy;
1640 policy = throttle_get_io_policy(&ut);
1645 if (policy == IOPOL_THROTTLE || policy == IOPOL_UTILITY) {
1649 } else if (policy == IOPOL_PASSIVE)
1694 throttle_info_update_internal(throttle_info, ut, policy, bflags, isssd);