SCX eBPF macro bpf_rbtree_add
The bpf_rbtree_add
macro wraps bpf_rbtree_add_impl
to provide a more ergonomic interface.
Definition
#define bpf_rbtree_add(head, node, less) bpf_rbtree_add_impl(head, node, less, NULL, 0)
Usage
The bpf_rbtree_add_impl
kfunc has a quirk where the forth argument is always NULL
, this wrapper abstracts that quirk away.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome