aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/llist.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2023-09-11 10:39:24 -0400
committerChuck Lever <chuck.lever@oracle.com>2023-10-16 12:44:05 -0400
commitd6b3358a2813bb14791259a2227d9af1e7019ca0 (patch)
treedfcd414323d726a8c90daa0913e467402f93b592 /lib/llist.c
parentSUNRPC: discard SP_CONGESTED (diff)
downloadwireguard-linux-d6b3358a2813bb14791259a2227d9af1e7019ca0.tar.xz
wireguard-linux-d6b3358a2813bb14791259a2227d9af1e7019ca0.zip
llist: add interface to check if a node is on a list.
With list.h lists, it is easy to test if a node is on a list, providing it was initialised and that it is removed with list_del_init(). This patch provides similar functionality for llist.h lists. init_llist_node() marks a node as being not-on-any-list be setting the ->next pointer to the node itself. llist_on_list() tests if the node is on any list. llist_del_first_init() remove the first element from a llist, and marks it as being off-list. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'lib/llist.c')
0 files changed, 0 insertions, 0 deletions