41#ifndef CONFIGURE_SCHEDULER_CBS
42 #error "qreslib.h available only with CONFIGURE_SCHEDULER_CBS"
59#define QOS_OK SCHEDULER_CBS_OK
60#define QOS_E_GENERIC SCHEDULER_CBS_ERROR_GENERIC
61#define QOS_E_NO_MEMORY SCHEDULER_CBS_ERROR_NO_MEMORY
62#define QOS_E_INVALID_PARAM SCHEDULER_CBS_ERROR_INVALID_PARAMETER
63#define QOS_E_UNAUTHORIZED SCHEDULER_CBS_ERROR_UNAUTHORIZED
64#define QOS_E_UNIMPLEMENTED SCHEDULER_CBS_ERROR_UNIMPLEMENTED
65#define QOS_E_MISSING_COMPONENT SCHEDULER_CBS_ERROR_MISSING_COMPONENT
66#define QOS_E_INCONSISTENT_STATE SCHEDULER_CBS_ERROR_INCONSISTENT_STATE
67#define QOS_E_SYSTEM_OVERLOAD SCHEDULER_CBS_ERROR_SYSTEM_OVERLOAD
68#define QOS_E_INTERNAL_ERROR SCHEDULER_CBS_ERROR_INTERNAL_ERROR
69#define QOS_E_NOT_FOUND SCHEDULER_CBS_ERROR_NOT_FOUND
70#define QOS_E_FULL SCHEDULER_CBS_ERROR_FULL
71#define QOS_E_EMPTY SCHEDULER_CBS_ERROR_EMPTY
72#define QOS_E_NOSERVER SCHEDULER_CBS_ERROR_NOSERVER
101static inline qos_rv qres_init (
void )
113static inline qos_rv qres_cleanup (
void )
125static inline qos_rv qres_create_server (
144static inline qos_rv qres_attach_thread (
160static inline qos_rv qres_detach_thread (
176static inline qos_rv qres_destroy_server (
191static inline qos_rv qres_get_sid (
207static inline qos_rv qres_get_params (
225static inline qos_rv qres_set_params (
243static inline qos_rv qres_get_exec_time (
259static inline qos_rv qres_get_curr_budget (
275static inline qos_rv qres_get_appr_budget (
Objects_Id rtems_id
This type represents RTEMS object identifiers.
Definition: types.h:94
int _Scheduler_CBS_Get_server_id(rtems_id task_id, Scheduler_CBS_Server_id *server_id)
Gets a thread server id.
Definition: schedulercbsgetserverid.c:46
int _Scheduler_CBS_Create_server(Scheduler_CBS_Parameters *params, Scheduler_CBS_Budget_overrun budget_overrun_callback, rtems_id *server_id)
Creates a new server with specified parameters.
Definition: schedulercbscreateserver.c:45
int _Scheduler_CBS_Cleanup(void)
Cleans up resources associated to the CBS Library.
Definition: schedulercbscleanup.c:44
int _Scheduler_CBS_Get_remaining_budget(Scheduler_CBS_Server_id server_id, time_t *remaining_budget)
Retrieves remaining budget for the current server instance.
Definition: schedulercbsgetremainingbudget.c:45
int _Scheduler_CBS_Get_approved_budget(Scheduler_CBS_Server_id server_id, time_t *approved_budget)
Retrieves the approved budget.
Definition: schedulercbsgetapprovedbudget.c:46
int _Scheduler_CBS_Detach_thread(Scheduler_CBS_Server_id server_id, rtems_id task_id)
Detaches from the CBS Server.
Definition: schedulercbsdetachthread.c:45
int _Scheduler_CBS_Destroy_server(Scheduler_CBS_Server_id server_id)
Detaches all tasks from a server and destroys it.
Definition: schedulercbsdestroyserver.c:44
int _Scheduler_CBS_Get_execution_time(Scheduler_CBS_Server_id server_id, time_t *exec_time, time_t *abs_time)
Gets relative time info.
Definition: schedulercbsgetexecutiontime.c:45
int _Scheduler_CBS_Attach_thread(Scheduler_CBS_Server_id server_id, rtems_id task_id)
Attaches a task to an already existing server.
Definition: schedulercbsattachthread.c:45
int _Scheduler_CBS_Initialize(void)
_Scheduler_CBS_Initialize
Definition: schedulercbs.c:109
int _Scheduler_CBS_Get_parameters(Scheduler_CBS_Server_id server_id, Scheduler_CBS_Parameters *params)
Retrieves CBS scheduling parameters.
Definition: schedulercbsgetparameters.c:46
uint32_t Scheduler_CBS_Server_id
Definition: schedulercbs.h:113
int _Scheduler_CBS_Set_parameters(Scheduler_CBS_Server_id server_id, Scheduler_CBS_Parameters *parameters)
Sets parameters for CBS scheduling.
Definition: schedulercbssetparameters.c:45
#define NULL
Requests a GPIO pin group configuration.
Definition: xil_types.h:54
Scheduler_CBS_Server_id qres_sid_t
Definition: qreslib.h:75
int qos_rv
Definition: qreslib.h:56
time_t qres_time_t
Definition: qreslib.h:81
time_t qres_atime_t
Definition: qreslib.h:84
rtems_id tid_t
Definition: qreslib.h:78
This header file provides interfaces of the Constant Bandwidth Server (CBS) Scheduler which are used ...
Definition: schedulercbs.h:123
qres_time_t Q
Definition: qreslib.h:91
qres_time_t P
Definition: qreslib.h:89