Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sched.h File Reference
#include <zephyr/kernel.h>
#include "posix_types.h"
#include <time.h>

Go to the source code of this file.

Macros

#define SCHED_OTHER   0
 
#define SCHED_FIFO   1
 
#define SCHED_RR   2
 

Functions

static int sched_yield (void)
 Yield the processor.
 
int sched_get_priority_min (int policy)
 
int sched_get_priority_max (int policy)
 
int sched_getparam (pid_t pid, struct sched_param *param)
 
int sched_getscheduler (pid_t pid)
 
int sched_setparam (pid_t pid, const struct sched_param *param)
 
int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param)
 
int sched_rr_get_interval (pid_t pid, struct timespec *interval)
 

Macro Definition Documentation

◆ SCHED_FIFO

#define SCHED_FIFO   1

◆ SCHED_OTHER

#define SCHED_OTHER   0

◆ SCHED_RR

#define SCHED_RR   2

Function Documentation

◆ sched_get_priority_max()

int sched_get_priority_max ( int  policy)

◆ sched_get_priority_min()

int sched_get_priority_min ( int  policy)

◆ sched_getparam()

int sched_getparam ( pid_t  pid,
struct sched_param *  param 
)

◆ sched_getscheduler()

int sched_getscheduler ( pid_t  pid)

◆ sched_rr_get_interval()

int sched_rr_get_interval ( pid_t  pid,
struct timespec interval 
)

◆ sched_setparam()

int sched_setparam ( pid_t  pid,
const struct sched_param *  param 
)

◆ sched_setscheduler()

int sched_setscheduler ( pid_t  pid,
int  policy,
const struct sched_param *  param 
)

◆ sched_yield()

static int sched_yield ( void  )
inlinestatic

Yield the processor.

See IEEE 1003.1