RTEMS Logo

RTEMS 4.7.2 On-Line Library


Semaphore Manager SEMAPHORE_IDENT - Get ID of a semaphore

PREV UP NEXT Bookshelf RTEMS C User's Guide

9.4.2: SEMAPHORE_IDENT - Get ID of a semaphore

CALLING SEQUENCE:

rtems_status_code rtems_semaphore_ident(
  rtems_name  name,
  uint32_t    node,
  rtems_id   *id
);

DIRECTIVE STATUS CODES:

RTEMS_SUCCESSFUL - semaphore identified successfully
RTEMS_INVALID_NAME - semaphore name not found
RTEMS_INVALID_NODE - invalid node id

DESCRIPTION:

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.

NOTES:

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.


PREV UP NEXT Bookshelf RTEMS C User's Guide

Copyright © 1988-2004 OAR Corporation