Definition in file listNode.c.
Include dependency graph for listNode.c:
Go to the source code of this file.
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. |
|
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 WeightedPolicyImpl::RedistributeCPU(), and StrictPolicyImpl::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 WeightedPolicyImpl::AddTask(), PartitionPolicyImpl::AddTask(), ManagerImpl::AddTask(), cpCreateChildProcess(), lnEnqueue(), WeightedPolicyImpl::RedistributeCPU(), StrictPolicyImpl::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 WeightedPolicyImpl::GetTaskList(), StrictPolicyImpl::GetTaskList(), PartitionPolicyImpl::GetTaskList(), and ManagerImpl::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(), WeightedPolicyImpl::RedistributeCPU(), StrictPolicyImpl::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(), WeightedPolicyImpl::RemoveTask(), StrictPolicyImpl::RemoveTask(), PartitionPolicyImpl::RemoveTask(), ManagerImpl::RemoveTask(), WeightedPolicyImpl::RepairTaskList(), StrictPolicyImpl::RepairTaskList(), PartitionPolicyImpl::RepairTaskList(), ManagerImpl::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. |