RTEMS CPU Kit with SuperCore  4.10.99.0
Defines | Typedefs | Functions
rtems/chain.h File Reference

Chain API. More...

#include <rtems/system.h>
#include <rtems/score/chain.h>
#include <rtems/rtems/event.h>
#include <rtems/chain.inl>
Include dependency graph for chain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define RTEMS_CHAIN_INITIALIZER_EMPTY(name)   CHAIN_INITIALIZER_EMPTY(name)
 Chain initializer for an empty chain with designator name.
#define RTEMS_CHAIN_DEFINE_EMPTY(name)   CHAIN_DEFINE_EMPTY(name)
 Chain definition for an empty chain with designator name.

Typedefs

typedef Chain_Node rtems_chain_node
typedef Chain_Control rtems_chain_control

Functions

rtems_status_code rtems_chain_append_with_notification (rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events)
 Appends the node to the chain and sends the events to the task if the chain was empty before the append.
rtems_status_code rtems_chain_prepend_with_notification (rtems_chain_control *chain, rtems_chain_node *node, rtems_id task, rtems_event_set events)
 Prepends the node to the chain and sends the events to the task if the chain was empty before the prepend.
rtems_status_code rtems_chain_get_with_notification (rtems_chain_control *chain, rtems_id task, rtems_event_set events, rtems_chain_node **node)
 Gets the first node of the chain and sends the events to the task if the chain is empty after the get.
rtems_status_code rtems_chain_get_with_wait (rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node)
 Gets the first node of the chain and sends the events to the task if the chain is empty afterwards.

Detailed Description

Chain API.