Definition in file listNode.h.
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| struct | lnMinNode |
| Basic node structure that is used for doubly linked list. More... | |
| struct | lnNode |
| Extended node structure that is used for doubly linked lists that can be ordered by priority. More... | |
| struct | lnMinList |
| A combined head and tail for lists that contain lnMinNode's. More... | |
| struct | lnList |
| A combined head and tail for lists that contain lnNode's. More... | |
Defines | |
| #define | lnEmptyList(list) ((struct lnMinNode *)(list)->lh_TailPred == (struct lnMinNode *)(list)) |
| Check if a list is empty. | |
Functions | |
| void | lnRemove (struct lnMinNode *node) |
| Remove a node from the list. | |
| void | lnNewList (struct lnMinList *list) |
| Initialize a list. | |
| void | lnMoveList (struct lnMinList *dest, struct lnMinList *src) |
| Transfer the nodes on src to dest, overwriting any nodes on dest. | |
| void | lnAppendList (struct lnMinList *dest, struct lnMinList *src) |
| Append the nodes from src to dest. | |
| void | lnAddHead (struct lnMinList *list, struct lnMinNode *node) |
| Add a node to the head of the list. | |
| void | lnAddTail (struct lnMinList *list, struct lnMinNode *node) |
| Add a node to the tail of the list. | |
| lnMinNode * | lnRemHead (struct lnMinList *list) |
| Remove and return the node at the head of the list, or NULL if the list is empty. | |
| lnMinNode * | lnRemTail (struct lnMinList *list) |
| Remove and return the node at the tail of the list, or NULL if the list is empty. | |
| void | lnInsert (struct lnMinNode *pred, struct lnMinNode *node) |
| Insert a node at a specific position in a list. | |
| void | lnEnqueue (struct lnList *list, struct lnNode *node) |
| Insert a node into a prioritized list. | |
| lnNode * | lnFindName (struct lnList *list, const char *name) |
| Find a node with the given name. | |
| unsigned int | lnCountNodes (struct lnMinList *list) |
| Count the number of nodes in a list. | |
|
|
Check if a list is empty.
Definition at line 134 of file listNode.h. Referenced by lnAppendList(). |
|
||||||||||||
|
Add a node to the head of the list.
Definition at line 92 of file listNode.c. References lnMinList::lh_Head, lnMinNode::ln_Pred, lnMinNode::ln_Succ, and require. Referenced by StrictPolicyImpl::RedistributeCPU(), and WeightedPolicyImpl::RedistributeCPU(). |
|
||||||||||||
|
Add a node to the tail of the list.
Definition at line 105 of file listNode.c. References lnMinList::lh_Tail, lnMinList::lh_TailPred, lnMinNode::ln_Pred, lnMinNode::ln_Succ, and require. Referenced by ManagerImpl::AddTask(), PartitionPolicyImpl::AddTask(), WeightedPolicyImpl::AddTask(), cpCreateChildProcess(), lnEnqueue(), StrictPolicyImpl::RedistributeCPU(), WeightedPolicyImpl::RedistributeCPU(), and rk_resource_set_create(). |
|
||||||||||||
|
Append the nodes from src to dest.
Definition at line 74 of file listNode.c. References lnMinList::lh_Head, lnMinList::lh_Tail, lnMinList::lh_TailPred, lnMinNode::ln_Pred, lnMinNode::ln_Succ, lnEmptyList, lnNewList(), and require. |
Here is the call graph for this function:

|
|
Count the number of nodes in a list.
Definition at line 220 of file listNode.c. References lnMinList::lh_Head, lnMinNode::ln_Succ, and require. Referenced by ManagerImpl::GetTaskList(), PartitionPolicyImpl::GetTaskList(), StrictPolicyImpl::GetTaskList(), and WeightedPolicyImpl::GetTaskList(). |
|
||||||||||||
|
Insert a node into a prioritized list.
Definition at line 174 of file listNode.c. References lnList::lh_Head, lnNode::ln_Pred, lnNode::ln_Pri, lnNode::ln_Succ, lnAddTail(), lnInsert(), and require. Referenced by StrictPolicyImpl::AddTask(), and StrictPolicyImpl::SetTaskPriority(). |
Here is the call graph for this function:

|
||||||||||||
|
Find a node with the given name.
Definition at line 199 of file listNode.c. References lnList::lh_Head, lnNode::ln_Name, lnNode::ln_Succ, and require. |
|
||||||||||||
|
Insert a node at a specific position in a list.
Definition at line 161 of file listNode.c. References lnMinNode::ln_Pred, lnMinNode::ln_Succ, and require. Referenced by lnEnqueue(). |
|
||||||||||||
|
Transfer the nodes on src to dest, overwriting any nodes on dest.
Definition at line 60 of file listNode.c. References lnMinList::lh_Head, lnMinList::lh_Tail, lnMinList::lh_TailPred, lnMinNode::ln_Pred, lnMinNode::ln_Succ, lnNewList(), and require. |
Here is the call graph for this function:

|
|
Initialize a list.
Definition at line 49 of file listNode.c. References lnMinList::lh_Head, lnMinList::lh_Tail, lnMinList::lh_TailPred, and require. Referenced by cpInitChildProcessData(), lnAppendList(), lnMoveList(), ManagerImpl::ManagerImpl(), PartitionPolicyImpl::PartitionPolicyImpl(), StrictPolicyImpl::RedistributeCPU(), WeightedPolicyImpl::RedistributeCPU(), rk_stub_set_mode(), StrictPolicyImpl::StrictPolicyImpl(), and WeightedPolicyImpl::WeightedPolicyImpl(). |
|
|
Remove and return the node at the head of the list, or NULL if the list is empty.
Definition at line 118 of file listNode.c. References lnMinList::lh_Head, lnMinNode::ln_Pred, lnMinNode::ln_Succ, and require. Referenced by cpKillChildProcessData(). |
|
|
Remove a node from the list.
Definition at line 32 of file listNode.c. References lnMinNode::ln_Pred, lnMinNode::ln_Succ, and require. Referenced by cpDeleteChildProcess(), ManagerImpl::RemoveTask(), PartitionPolicyImpl::RemoveTask(), StrictPolicyImpl::RemoveTask(), WeightedPolicyImpl::RemoveTask(), ManagerImpl::RepairTaskList(), PartitionPolicyImpl::RepairTaskList(), StrictPolicyImpl::RepairTaskList(), WeightedPolicyImpl::RepairTaskList(), rk_resource_set_destroy(), and StrictPolicyImpl::SetTaskPriority(). |
|
|
Remove and return the node at the tail of the list, or NULL if the list is empty.
Definition at line 139 of file listNode.c. References lnMinList::lh_Tail, lnMinList::lh_TailPred, lnMinNode::ln_Pred, lnMinNode::ln_Succ, and require. |
1.3.9.1