zephyr/tests/kernel
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
..
arm_irq_vector_table drivers: nrf: Adjust clock_control and timer drivers for nRF9160 2019-01-21 10:13:34 +01:00
arm_runtime_nmi cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
boot_page_table cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
common sys: dlist: Add sys_dnode_is_linked 2019-01-23 20:46:49 +01:00
context cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
critical cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
device cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
early_sleep cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
errno tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
fatal tests: Dont run coverage for select test cases. 2019-01-16 06:12:33 -05:00
fifo cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
fp_sharing cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
gen_isr_table cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
init cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
interrupt cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
irq_offload cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
lifo cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
mbox tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
mem_heap/mheap_api_concept cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
mem_pool tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
mem_protect tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
mem_slab tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
mp cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
msgq/msgq_api tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
mutex tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
obj_tracing kernel: remove k_alert API 2019-01-16 21:34:07 -05:00
pending tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
pipe tests: Updated all the tests which use k_thread_access_grant. 2019-01-03 12:35:14 -08:00
poll tests: Updated all the tests which use k_thread_access_grant. 2019-01-03 12:35:14 -08:00
profiling/profiling_api cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
queue cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
sched tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
semaphore tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
sleep cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
smp cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
spinlock cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
stack tests: Updated all the tests which use k_thread_access_grant. 2019-01-03 12:35:14 -08:00
static_idt cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
threads tests/kernel/threads/thread_apis: Fix include hygine 2019-01-11 15:18:52 -05:00
tickless tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
timer tests/kernel/timer_api: Synchronize racy subtest 2019-01-03 12:29:02 -05:00
workq tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
xip cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00