aboutsummaryrefslogtreecommitdiffstats
path: root/src/list.h
Commit message (Collapse)AuthorAgeFilesLines
* malloc: Introduce common helper alloc_new_detail()Kevin O'Connor2015-10-151-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>
* Another fix for hlist_for_each_entry_safe.Kevin O'Connor2013-06-131-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>
* Fix error in hlist_for_each_entry_safe macro.Kevin O'Connor2013-06-131-2/+1
| | | | | | Fix broken macro - it did not work correctly at all. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Introduce and convert pmm code to use standard list helpers.Kevin O'Connor2013-06-081-0/+76
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>