diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/rtems/cbs.h | 49 |
1 files changed, 34 insertions, 15 deletions
diff --git a/cpukit/include/rtems/cbs.h b/cpukit/include/rtems/cbs.h index a42061ddc0..ee87cb7ae0 100644 --- a/cpukit/include/rtems/cbs.h +++ b/cpukit/include/rtems/cbs.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-2-Clause */ + /** * @file * @@ -12,9 +14,26 @@ * Copyright (C) 2011 Petr Benes. * Copyright (C) 2011 On-Line Applications Research Corporation (OAR). * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef CONFIGURE_SCHEDULER_CBS @@ -62,7 +81,7 @@ typedef Scheduler_CBS_Parameters rtems_cbs_parameters; * * @return status code. */ -RTEMS_INLINE_ROUTINE int rtems_cbs_initialize ( void ) +static inline int rtems_cbs_initialize ( void ) { return _Scheduler_CBS_Initialize(); } @@ -74,7 +93,7 @@ RTEMS_INLINE_ROUTINE int rtems_cbs_initialize ( void ) * * @return status code. */ -RTEMS_INLINE_ROUTINE int rtems_cbs_cleanup ( void ) +static inline int rtems_cbs_cleanup ( void ) { return _Scheduler_CBS_Cleanup(); } @@ -86,7 +105,7 @@ RTEMS_INLINE_ROUTINE int rtems_cbs_cleanup ( void ) * * @return status code. */ -RTEMS_INLINE_ROUTINE int rtems_cbs_create_server ( +static inline int rtems_cbs_create_server ( rtems_cbs_parameters *params, rtems_cbs_budget_overrun budget_overrun_callback, rtems_cbs_server_id *server_id @@ -106,7 +125,7 @@ RTEMS_INLINE_ROUTINE int rtems_cbs_create_server ( * * @return status code. */ -RTEMS_INLINE_ROUTINE int rtems_cbs_attach_thread ( +static inline int rtems_cbs_attach_thread ( rtems_cbs_server_id server_id, rtems_id task_id ) @@ -121,7 +140,7 @@ RTEMS_INLINE_ROUTINE int rtems_cbs_attach_thread ( * * @return status code. */ -RTEMS_INLINE_ROUTINE int rtems_cbs_detach_thread ( +static inline int rtems_cbs_detach_thread ( rtems_cbs_server_id server_id, rtems_id task_id ) @@ -136,7 +155,7 @@ RTEMS_INLINE_ROUTINE int rtems_cbs_detach_thread ( * * @return status code. */ -RTEMS_INLINE_ROUTINE int rtems_cbs_destroy_server ( +static inline int rtems_cbs_destroy_server ( rtems_cbs_server_id server_id ) { @@ -151,7 +170,7 @@ RTEMS_INLINE_ROUTINE int rtems_cbs_destroy_server ( * * @return status code. */ -RTEMS_INLINE_ROUTINE int rtems_cbs_get_server_id ( +static inline int rtems_cbs_get_server_id ( rtems_id task_id, rtems_cbs_server_id *server_id ) @@ -166,7 +185,7 @@ RTEMS_INLINE_ROUTINE int rtems_cbs_get_server_id ( * * @return status code. */ -RTEMS_INLINE_ROUTINE int rtems_cbs_get_parameters ( +static inline int rtems_cbs_get_parameters ( rtems_cbs_server_id server_id, rtems_cbs_parameters *params ) @@ -181,7 +200,7 @@ RTEMS_INLINE_ROUTINE int rtems_cbs_get_parameters ( * * @return status code. */ -RTEMS_INLINE_ROUTINE int rtems_cbs_set_parameters ( +static inline int rtems_cbs_set_parameters ( rtems_cbs_server_id server_id, rtems_cbs_parameters *params ) @@ -196,7 +215,7 @@ RTEMS_INLINE_ROUTINE int rtems_cbs_set_parameters ( * * @return status code. */ -RTEMS_INLINE_ROUTINE int rtems_cbs_get_execution_time ( +static inline int rtems_cbs_get_execution_time ( rtems_cbs_server_id server_id, time_t *exec_time, time_t *abs_time @@ -212,7 +231,7 @@ RTEMS_INLINE_ROUTINE int rtems_cbs_get_execution_time ( * * @return status code. */ -RTEMS_INLINE_ROUTINE int rtems_cbs_get_remaining_budget ( +static inline int rtems_cbs_get_remaining_budget ( rtems_cbs_server_id server_id, time_t *remaining_budget ) @@ -228,7 +247,7 @@ RTEMS_INLINE_ROUTINE int rtems_cbs_get_remaining_budget ( * * @return status code. */ -RTEMS_INLINE_ROUTINE int rtems_cbs_get_approved_budget ( +static inline int rtems_cbs_get_approved_budget ( rtems_cbs_server_id server_id, time_t *appr_budget ) |