22 #ifndef CONFIGURE_SCHEDULER_CBS 23 #error "qreslib.h available only with CONFIGURE_SCHEDULER_CBS" 40 #define QOS_OK SCHEDULER_CBS_OK 41 #define QOS_E_GENERIC SCHEDULER_CBS_ERROR_GENERIC 42 #define QOS_E_NO_MEMORY SCHEDULER_CBS_ERROR_NO_MEMORY 43 #define QOS_E_INVALID_PARAM SCHEDULER_CBS_ERROR_INVALID_PARAMETER 44 #define QOS_E_UNAUTHORIZED SCHEDULER_CBS_ERROR_UNAUTHORIZED 45 #define QOS_E_UNIMPLEMENTED SCHEDULER_CBS_ERROR_UNIMPLEMENTED 46 #define QOS_E_MISSING_COMPONENT SCHEDULER_CBS_ERROR_MISSING_COMPONENT 47 #define QOS_E_INCONSISTENT_STATE SCHEDULER_CBS_ERROR_INCONSISTENT_STATE 48 #define QOS_E_SYSTEM_OVERLOAD SCHEDULER_CBS_ERROR_SYSTEM_OVERLOAD 49 #define QOS_E_INTERNAL_ERROR SCHEDULER_CBS_ERROR_INTERNAL_ERROR 50 #define QOS_E_NOT_FOUND SCHEDULER_CBS_ERROR_NOT_FOUND 51 #define QOS_E_FULL SCHEDULER_CBS_ERROR_FULL 52 #define QOS_E_EMPTY SCHEDULER_CBS_ERROR_EMPTY 53 #define QOS_E_NOSERVER SCHEDULER_CBS_ERROR_NOSERVER 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:24
int _Scheduler_CBS_Detach_thread(Scheduler_CBS_Server_id server_id, rtems_id task_id)
Detaches from the CBS Server.
Definition: schedulercbsdetachthread.c:25
uint32_t Scheduler_CBS_Server_id
Definition: schedulercbs.h:95
qres_time_t P
Definition: qreslib.h:70
RTEMS_INLINE_ROUTINE qos_rv qres_get_sid(pid_t pid, tid_t task_id, qres_sid_t *server_id)
qres get server id
Definition: qreslib.h:172
time_t qres_atime_t
Definition: qreslib.h:65
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:24
RTEMS_INLINE_ROUTINE qos_rv qres_destroy_server(qres_sid_t server_id)
qres destroy server
Definition: qreslib.h:157
RTEMS_INLINE_ROUTINE qos_rv qres_get_params(qres_sid_t server_id, qres_params_t *params)
qres get params
Definition: qreslib.h:188
rtems_id tid_t
Definition: qreslib.h:59
RTEMS_INLINE_ROUTINE qos_rv qres_get_exec_time(qres_sid_t server_id, qres_time_t *exec_time, qres_atime_t *abs_time)
qres get execution time
Definition: qreslib.h:224
RTEMS_INLINE_ROUTINE qos_rv qres_init(void)
qres init
Definition: qreslib.h:82
RTEMS_INLINE_ROUTINE qos_rv qres_create_server(qres_params_t *params, qres_sid_t *server_id)
qres create server
Definition: qreslib.h:106
int _Scheduler_CBS_Set_parameters(Scheduler_CBS_Server_id server_id, Scheduler_CBS_Parameters *parameters)
Sets parameters for CBS scheduling.
Definition: schedulercbssetparameters.c:25
int _Scheduler_CBS_Get_parameters(Scheduler_CBS_Server_id server_id, Scheduler_CBS_Parameters *params)
Retrieves CBS scheduling parameters.
Definition: schedulercbsgetparameters.c:26
RTEMS_INLINE_ROUTINE qos_rv qres_attach_thread(qres_sid_t server_id, pid_t pid, tid_t task_id)
qres attach thread
Definition: qreslib.h:125
RTEMS_INLINE_ROUTINE qos_rv qres_detach_thread(qres_sid_t server_id, pid_t pid, tid_t task_id)
qres detach thread
Definition: qreslib.h:141
int _Scheduler_CBS_Get_approved_budget(Scheduler_CBS_Server_id server_id, time_t *approved_budget)
Retrieves the approved budget.
Definition: schedulercbsgetapprovedbudget.c:25
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:25
time_t qres_time_t
Definition: qreslib.h:62
Scheduler_CBS_Server_id qres_sid_t
Definition: qreslib.h:56
RTEMS_INLINE_ROUTINE qos_rv qres_get_appr_budget(qres_sid_t server_id, qres_time_t *appr_budget)
qres get approved budget
Definition: qreslib.h:256
Definition: schedulercbs.h:105
RTEMS_INLINE_ROUTINE qos_rv qres_set_params(qres_sid_t server_id, qres_params_t *params)
qres set params
Definition: qreslib.h:206
RTEMS_INLINE_ROUTINE qos_rv qres_get_curr_budget(qres_sid_t server_id, qres_time_t *current_budget)
qres get current budget
Definition: qreslib.h:240
int _Scheduler_CBS_Cleanup(void)
Cleans up resources associated to the CBS Library.
Definition: schedulercbscleanup.c:24
int _Scheduler_CBS_Get_server_id(rtems_id task_id, Scheduler_CBS_Server_id *server_id)
Gets a thread server id.
Definition: schedulercbsgetserverid.c:25
int _Scheduler_CBS_Initialize(void)
_Scheduler_CBS_Initialize
Definition: schedulercbs.c:54
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:83
RTEMS_INLINE_ROUTINE qos_rv qres_cleanup(void)
qres cleanup
Definition: qreslib.h:94
qres_time_t Q
Definition: qreslib.h:72
int _Scheduler_CBS_Destroy_server(Scheduler_CBS_Server_id server_id)
Detaches all tasks from a server and destroys it.
Definition: schedulercbsdestroyserver.c:25
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
int qos_rv
Definition: qreslib.h:37
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:24
Thread manipulation for the CBS scheduler.
#define NULL
Requests a GPIO pin group configuration.
Definition: bestcomm_api.h:77