Skip to content

KFunc bpf_list_empty

v7.2

Check if a list is empty.

Definition

Parameters

head: The list to check.

Returns

true if head is an empty list.

Signature

bool bpf_list_empty(struct bpf_list_head *head)

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