GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / dev > pbs / linux-gcc
#include <PBI/Inline.h>
#include <PBI/Attribute.h>
#include <PBS/L_pubdefs.h>
Defines | |
#define | L__EXP_PROTO INLINE_USR_EXP_PROTO |
Export Prototype spec. | |
#define | L__LCL_PROTO INLINE_USR_LCL_PROTO |
Internal Prototype spec. | |
#define | L__EXP_FNC INLINE_USR_EXP_FNC |
Export Function declaration. | |
#define | L__LCL_FNC INLINE_USR_LCL_FNC |
Internal Function declaration. | |
Functions | |
L__EXP_PROTO void | L__append (L_head *dst, L_head *src) ATTR_UNUSED_OK |
Appends the src list members to the dst list. | |
L__EXP_PROTO void | L__destroy (L_head *list) ATTR_UNUSED_OK |
Destroys the data structures associate with the list. | |
L__EXP_PROTO int | L__empty (L_head *list) ATTR_UNUSED_OK |
Returns non zero if the list is empty list. | |
L__EXP_PROTO void | L__init (L_head *list) ATTR_UNUSED_OK |
Initializes a list (singly linked list) to an empty list. | |
L__EXP_PROTO L_node * | L__insert (L_head *list, L_node *node) ATTR_UNUSED_OK |
Adds a node to the tail of a previously initialized list. | |
L__EXP_PROTO L_node * | L__jam (L_head *list, L_node *node) ATTR_UNUSED_OK |
Adds a node to the head of a previously initialized list. | |
L__EXP_PROTO void | L__prepend (L_head *dst, L_head *src) ATTR_UNUSED_OK |
Prepends the src list members to the dst list. | |
L__EXP_PROTO L_node * | L__remove (L_head *list) ATTR_UNUSED_OK |
Removes the node from the head of a previously initialized list.. An empty list returns NULL as its node. | |
L__EXP_PROTO L_node * | L__unlink (const L_node *node, L_node *predecessor) ATTR_UNUSED_OK |
Removes the specified node from the list. |
CVS $Id: L.ih,v 1.7 2011/03/24 23:05:42 apw Exp $
Appends the src list members to the dst list.
dst | A previously initialized list acting as the destination | |
src | A previously initialized list acting as the source |
References _L_head::blnk, _L_node::flnk, and _L_head::flnk.
Referenced by LI__append().
L__EXP_FNC void L__destroy | ( | L_head * | list | ) |
Destroys the data structures associate with the list.
list | Pointer to the list to destroy. |
L__EXP_FNC int L__empty | ( | L_head * | list | ) |
Returns non zero if the list is empty list.
list | Pointer to the list to initialize. |
References _L_head::flnk.
L__EXP_FNC void L__init | ( | L_head * | list | ) |
Initializes a list (singly linked list) to an empty list.
list | Pointer to the list to initialize. |
References _L_head::blnk, and _L_head::flnk.
Adds a node to the tail of a previously initialized list.
list | A previously initialized list. | |
node | The node to add at the tail of the mode |
Adds the specified node to the tail of the list. If all nodes are added with the L__insert routine, the list behaves as a FIFO.
References _L_head::blnk, and _L_node::flnk.
Referenced by FPA_free(), LI__insert(), and PL__insert().
Adds a node to the head of a previously initialized list.
list | A previously initialized list. | |
node | The node to add. |
References _L_node::flnk, and _L_head::flnk.
Prepends the src list members to the dst list.
dst | A previously initialized list acting as the destination | |
src | A previously initialized list acting as the source |
References _L_node::flnk, and _L_head::flnk.
Removes the node from the head of a previously initialized list.. An empty list returns NULL as its node.
list | A previously initialized list. |
References _L_node::flnk, and _L_head::flnk.
Referenced by allocate(), LI__remove(), LI__removeW(), and pl__remove().
Removes the specified node from the list.
node | The node to unlink from the list | |
predecessor | The predecessor node. |
References _L_node::flnk.