mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
score: Constify objects name to id functions
This commit is contained in:
1 parent
d556af3605
commit
33dbb3355f
4 files changed
+17
-17
No files matched your search
@@ -237,10 +237,10 @@ typedef enum {
|
||||
* @retval OBJECTS_INVALID_ID The id is not 0 before the operation.
|
||||
*/
|
||||
Objects_Name_or_id_lookup_errors _Objects_Name_to_id_u32(
|
||||
Objects_Information *information,
|
||||
uint32_t name,
|
||||
uint32_t node,
|
||||
Objects_Id *id
|
||||
const Objects_Information *information,
|
||||
uint32_t name,
|
||||
uint32_t node,
|
||||
Objects_Id *id
|
||||
);
|
||||
|
||||
typedef enum {
|
||||
|
||||
@@ -150,10 +150,10 @@ void _Objects_MP_Close (
|
||||
* @retval OBJECTS_INVALID_NAME There is no global object with this name.
|
||||
*/
|
||||
Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search (
|
||||
Objects_Information *information,
|
||||
Objects_Name the_name,
|
||||
uint32_t nodes_to_search,
|
||||
Objects_Id *the_id
|
||||
const Objects_Information *information,
|
||||
Objects_Name the_name,
|
||||
uint32_t nodes_to_search,
|
||||
Objects_Id *the_id
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
@@ -284,10 +284,10 @@ void _Objects_MP_Close (
|
||||
}
|
||||
|
||||
Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search(
|
||||
Objects_Information *information,
|
||||
Objects_Name the_name,
|
||||
uint32_t nodes_to_search,
|
||||
Objects_Id *the_id
|
||||
const Objects_Information *information,
|
||||
Objects_Name the_name,
|
||||
uint32_t nodes_to_search,
|
||||
Objects_Id *the_id
|
||||
)
|
||||
{
|
||||
Objects_Name_or_id_lookup_errors status;
|
||||
|
||||
@@ -21,14 +21,14 @@
|
||||
#include <rtems/score/objectimpl.h>
|
||||
|
||||
Objects_Name_or_id_lookup_errors _Objects_Name_to_id_u32(
|
||||
Objects_Information *information,
|
||||
uint32_t name,
|
||||
uint32_t node,
|
||||
Objects_Id *id
|
||||
const Objects_Information *information,
|
||||
uint32_t name,
|
||||
uint32_t node,
|
||||
Objects_Id *id
|
||||
)
|
||||
{
|
||||
bool search_local_node;
|
||||
Objects_Control *the_object;
|
||||
const Objects_Control *the_object;
|
||||
Objects_Maximum maximum;
|
||||
Objects_Maximum index;
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
|
||||
Reference in new issue
Block a user