RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Macros | Functions
scheduler.h File Reference

This header file defines the main parts of the Scheduler Manager API. More...

#include <stddef.h>
#include <stdint.h>
#include <sys/cpuset.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/types.h>
#include <rtems/score/smp.h>

Go to the source code of this file.

Macros

#define rtems_scheduler_get_processor(void)   _SMP_Get_current_processor()
 Returns the index of the current processor.
 
#define rtems_scheduler_get_processor_maximum(void)   _SMP_Get_processor_maximum()
 Returns the processor maximum supported by the system.
 

Functions

rtems_status_code rtems_scheduler_ident (rtems_name name, rtems_id *id)
 Identifies a scheduler by the object name.
 
rtems_status_code rtems_scheduler_ident_by_processor (uint32_t cpu_index, rtems_id *id)
 Identifies a scheduler by the processor index.
 
rtems_status_code rtems_scheduler_ident_by_processor_set (size_t cpusetsize, const cpu_set_t *cpuset, rtems_id *id)
 Identifies a scheduler by the processor set.
 
rtems_status_code rtems_scheduler_get_maximum_priority (rtems_id scheduler_id, rtems_task_priority *priority)
 Gets the maximum task priority of the scheduler.
 
rtems_status_code rtems_scheduler_map_priority_to_posix (rtems_id scheduler_id, rtems_task_priority priority, int *posix_priority)
 Maps a Classic API task priority to the corresponding POSIX thread priority.
 
rtems_status_code rtems_scheduler_map_priority_from_posix (rtems_id scheduler_id, int posix_priority, rtems_task_priority *priority)
 Maps a POSIX thread priority to the corresponding Classic API task priority.
 
rtems_status_code rtems_scheduler_get_processor_set (rtems_id scheduler_id, size_t cpusetsize, cpu_set_t *cpuset)
 Gets the set of processors owned by the scheduler.
 
rtems_status_code rtems_scheduler_add_processor (rtems_id scheduler_id, uint32_t cpu_index)
 Adds the processor to the set of processors owned by the scheduler.
 
rtems_status_code rtems_scheduler_remove_processor (rtems_id scheduler_id, uint32_t cpu_index)
 Removes the processor from the set of processors owned by the scheduler.
 

Detailed Description

This header file defines the main parts of the Scheduler Manager API.