rtems_status_code rtems_semaphore_ident( rtems_name name, uint32_t node, rtems_id *id );
RTEMS_SUCCESSFUL
- semaphore identified successfully
RTEMS_INVALID_NAME
- semaphore name not found
RTEMS_INVALID_NODE
- invalid node id
This directive obtains the semaphore id associated with the semaphore name. If the semaphore name is not unique, then the semaphore id will match one of the semaphores with that name. However, this semaphore id is not guaranteed to correspond to the desired semaphore. The semaphore id is used by other semaphore related directives to access the semaphore.
This directive will not cause the running task to be preempted.
If node is RTEMS_SEARCH_ALL_NODES
, all nodes are searched
with the local node being searched first. All other nodes are
searched with the lowest numbered node searched first.
If node is a valid node number which does not represent the local node, then only the semaphores exported by the designated node are searched.
This directive does not generate activity on remote nodes. It accesses only the local copy of the global object table.
Copyright © 1988-2008 OAR Corporation