diff options
| author | NeilBrown <[email protected]> | 2023-09-11 10:39:24 -0400 |
|---|---|---|
| committer | Chuck Lever <[email protected]> | 2023-10-16 12:44:05 -0400 |
| commit | d6b3358a2813bb14791259a2227d9af1e7019ca0 (patch) | |
| tree | dfcd414323d726a8c90daa0913e467402f93b592 /tools/perf/scripts/python/flamegraph.py | |
| parent | 2b65a226840c0e86db0e7926856a0a017b3390f2 (diff) | |
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 <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions