zephyr/include/misc
Benjamin Walsh ca51a72133 dlist: enhance library and make all functions inline
The old doubly-linked list implementation had only support for very
basic operations, i.e. add at head and remove.

The new implementation is highly enhanced, allowing these operations:

- initialize list
- check if a node is the list's head
- check if a node is the list's tail
- check if the list is empty
- get a reference to the head item in the list
- get a reference to the next item in the list
- add node to tail of list
- add node to head of list
- insert node after a node
- insert node before a node
- insert node at position based on condition
- remove a specific node from a list
- get the first node in a list

The implementation is completely inline, since the operations are rather
simple and do not warrant a function call.

Change-Id: Id85c04e67f6a88b005390172f1276daa12bcf8ce
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05 20:14:22 -05:00
..
__assert.h Standardize on using _STRINGIFY(x) 2016-02-05 20:14:00 -05:00
byteorder.h byteorder: Add macros for 32bits values 2016-02-05 20:13:49 -05:00
dlist.h dlist: enhance library and make all functions inline 2016-02-05 20:14:22 -05:00
lists.h Eliminate non-standard NULL definitions 2016-02-05 20:14:14 -05:00
lists_c.h First commit 2015-04-10 16:44:37 -07:00
printk.h First commit 2015-04-10 16:44:37 -07:00
util.h util: add CONTAINER_OF() 2016-02-05 20:14:22 -05:00