KFunc bpf_rbtree_add
Add node to red-black-tree with root root using comparator less
Definition
Parameters
root: Root node of the red-back-tree.
node: Node to add to the tree.
less: Callback function used as comparator.
Returns
0if the node was successfully added-EINVALif the node wasn't added because it's already in a tree
Signature
int bpf_rbtree_add(struct bpf_rb_root *root, struct bpf_rb_node *node, bool (less)(struct bpf_rb_node * , const struct bpf_rb_node * ))
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Program types
The following program types can make use of this kfunc:
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome