Skip to content

KFunc bpf_list_push_back

7.1

Add a new entry to the end of the BPF linked list.

Definition

Parameters

head: Head of the linked list. node: The node to add to the list.

Returns

  • 0 if the node was successfully added
  • -EINVAL if the node wasn't added because it's already in a list

Signature

int bpf_list_push_back(struct bpf_list_head *head, struct bpf_list_node *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