procedure Semaphore_Ident ( Name : in RTEMS.Name; Node : in RTEMS.Unsigned32; ID : out RTEMS.ID; Result : out RTEMS.Status_Codes );
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