KFunc bpf_list_add
Inserts new after prev in the BPF linked list.
Definition
Parameters
head: The list head to which new should be added.
new: The node to be added to the list.
prev__nonown_allowed: The node after which new should be added.
Returns
Pointer to bpf_list_node of that was added, or NULL if it was not added to the list.
Signature
int bpf_list_add(struct bpf_list_head *head, struct bpf_list_node *new, struct bpf_list_node *prev__nonown_allowed)
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