Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.54 KB

bpf_list_push_back_impl.md

File metadata and controls

47 lines (32 loc) · 1.54 KB
title description
KFunc 'bpf_list_push_back_impl'
This page documents the 'bpf_list_push_back_impl' eBPF kfunc, including its defintion, usage, program types that can use it, and examples.

KFunc bpf_list_push_back_impl

:octicons-tag-24: v6.4

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

Definition

The meta and off parameters are rewritten by the verifier, no need for BPF programs to set them

Returns

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

#!c int bpf_list_push_back_impl(struct bpf_list_head *head, struct bpf_list_node *node, void *meta__ign, u64 off)

Usage

!!! example "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

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome