zephyr/tests/kernel/common
Peter A. Bigot d40b8ce1fb sys: dlist: Add sys_dnode_is_linked
The original implementation allows a list to be corrupted by list
operations on the removed node.  Existing code attempts to avoid this by
using external state to determine whether a node is in a list, but this
is fragile and fails when the state that holds the flag value is changed
after the node is removed, e.g. in preparation for re-using the node.

Follow Linux in invalidating the link pointers in a removed node.  Add
API so that detection of particpation in a list is available at the node
abstraction.

This solution relies on the following steady-state invariants:
* A node (as opposed to a list) will never be adjacent to itself in a
  list;
* The next and prev pointers of a node are always either both null or
  both non-null.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-01-23 20:46:49 +01:00
..
src sys: dlist: Add sys_dnode_is_linked 2019-01-23 20:46:49 +01:00
CMakeLists.txt cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
multilib.txt tests: move multilib test to common/ 2018-02-18 09:16:40 -05:00
prj.conf drivers/timer: Add a standard workaround for known qemu issues 2018-11-13 17:10:07 -05:00
testcase.yaml sanitycheck: add min_flash option for 32K devices 2018-04-21 06:57:38 -07:00