Lines Matching refs:kr
37 kern_return_t kr; in thread_policy() local
39 kr = _kernelrpc_thread_policy(thr_act, policy, base, baseCnt, set_limit); in thread_policy()
40 if (kr == KERN_SUCCESS) { in thread_policy()
42 } else if (kr == KERN_POLICY_STATIC) { in thread_policy()
43 kr = KERN_SUCCESS; in thread_policy()
46 return kr; in thread_policy()
52 kern_return_t kr; in thread_policy_set() local
54 kr = _kernelrpc_thread_policy_set(thread, flavor, policy_info, policy_infoCnt); in thread_policy_set()
55 if (kr == KERN_SUCCESS) { in thread_policy_set()
57 } else if (kr == KERN_POLICY_STATIC) { in thread_policy_set()
58 kr = KERN_SUCCESS; in thread_policy_set()
61 return kr; in thread_policy_set()
67 kern_return_t kr; in thread_set_policy() local
69 kr = _kernelrpc_thread_set_policy(thr_act, pset, policy, base, baseCnt, limit, limitCnt); in thread_set_policy()
70 if (kr == KERN_SUCCESS) { in thread_set_policy()
72 } else if (kr == KERN_POLICY_STATIC) { in thread_set_policy()
73 kr = KERN_SUCCESS; in thread_set_policy()
76 return kr; in thread_set_policy()