KFunc bpf_list_push_front_impl
Add a new entry to the beginning of the BPF linked list.
Note
This kfunc is deprecated as of 7.1, replaced by bpf_list_push_front. This kfunc will be removed at some point in the future.
Definition
Parameters
head: Head of the linked list.
node: The node to add to the list.
The meta and off parameters are rewritten by the verifier, no need for BPF programs to set them
Returns
0if the node was successfully added-EINVALif the node wasn't added because it's already in a list
Signature
int bpf_list_push_front_impl(struct bpf_list_head *head, struct bpf_list_node *node, void *meta__ign, u64 off)
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