I\'m learning how to use the kernel linked-list API from list.h.
I learned that I need to use list_for_each_safe() when deleting nodes off with list_d
list_for_each_safe()
list_d
pos = start; del(pos); pos = pos->next;
as opposed to
pos = start; n = pos->next; del(pos); pos = n;
if del() is free() and memset(), pos->next is undefined