18 #pragma GCC system_header
19 #include_next <sched.h>
21 #ifndef _COBALT_SCHED_H
22 #define _COBALT_SCHED_H
24 #include <sys/types.h>
25 #include <cobalt/wrappers.h>
26 #include <cobalt/uapi/sched.h>
39 const struct sched_param *param));
48 const struct sched_param_ex *param_ex);
51 struct sched_param_ex *param_ex);
54 const union sched_config *config,
size_t len);
57 union sched_config *config,
size_t *len_r);
int sched_setconfig_np(int cpu, int policy, const union sched_config *config, size_t len)
Set CPU-specific scheduler settings for a policy.
Definition: sched.c:562
ssize_t sched_getconfig_np(int cpu, int policy, union sched_config *config, size_t *len_r)
Retrieve CPU-specific scheduler settings for a policy.
Definition: sched.c:619
int sched_yield(void)
Yield the processor.
Definition: sched.c:57
int sched_get_priority_max_ex(int policy)
Get extended maximum priority of the specified scheduling policy.
Definition: sched.c:431
int sched_setscheduler_ex(pid_t pid, int policy, const struct sched_param_ex *param_ex)
Set extended scheduling policy of a process.
Definition: sched.c:288
int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param)
Set the scheduling policy and parameters of the specified process.
Definition: sched.c:226
int sched_getscheduler_ex(pid_t pid, int *policy_r, struct sched_param_ex *param_ex)
Get extended scheduling policy of a process.
Definition: sched.c:403
int sched_getscheduler(pid_t pid)
Get the scheduling policy of the specified process.
Definition: sched.c:353
int sched_get_priority_min_ex(int policy)
Get extended minimum priority of the specified scheduling policy.
Definition: sched.c:128
int sched_get_priority_min(int policy)
Get minimum priority of the specified scheduling policy.
Definition: sched.c:88
int sched_get_priority_max(int policy)
Get maximum priority of the specified scheduling policy.
Definition: sched.c:165