aboutsummaryrefslogtreecommitdiff
path: root/src/list.h
AgeCommit message (Collapse)AuthorFilesLines
2015-10-15malloc: Introduce common helper alloc_new_detail()Kevin O'Connor1-0/+10
Introduce helper for finding temp space to hold an "allocation detail struct" and use it in both alloc_add() and _malloc(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2013-06-13Another fix for hlist_for_each_entry_safe.Kevin O'Connor1-1/+7
Although the previous patch does fix hlist_for_each_entry_safe for the common case, it doesn't work correctly when deleting the current node. To fix this, introduce two macros - hlist_for_each_entry_safe for iterating through a list that can be modified, and hlist_for_each_entry_pprev for those users that only need access to the "pprev" pointer. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2013-06-13Fix error in hlist_for_each_entry_safe macro.Kevin O'Connor1-2/+1
Fix broken macro - it did not work correctly at all. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2013-06-08Introduce and convert pmm code to use standard list helpers.Kevin O'Connor1-0/+76
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>