Lines Matching refs:policy
2252 " A tuple with the scheduler policy (optional) and parameters.");
2379 " A tuple with the scheduler policy (optional) and parameters.");
2703 "sched_get_priority_max($module, /, policy)\n"
2706 "Get the maximum scheduling priority for policy.");
2712 os_sched_get_priority_max_impl(PyObject *module, int policy);
2718 static const char * const _keywords[] = {"policy", NULL};
2721 int policy;
2727 policy = _PyLong_AsInt(args[0]);
2728 if (policy == -1 && PyErr_Occurred()) {
2731 return_value = os_sched_get_priority_max_impl(module, policy);
2742 "sched_get_priority_min($module, /, policy)\n"
2745 "Get the minimum scheduling priority for policy.");
2751 os_sched_get_priority_min_impl(PyObject *module, int policy);
2757 static const char * const _keywords[] = {"policy", NULL};
2760 int policy;
2766 policy = _PyLong_AsInt(args[0]);
2767 if (policy == -1 && PyErr_Occurred()) {
2770 return_value = os_sched_get_priority_min_impl(module, policy);
2784 "Get the scheduling policy for the process identified by pid.\n"
2786 "Passing 0 for pid returns the scheduling policy for the calling process.");
2852 "sched_setscheduler($module, pid, policy, param, /)\n"
2855 "Set the scheduling policy for the process identified by pid.\n"
2864 os_sched_setscheduler_impl(PyObject *module, pid_t pid, int policy,
2872 int policy;
2876 &pid, &policy, ¶m_obj)) {
2879 return_value = os_sched_setscheduler_impl(module, pid, policy, param_obj);