Skip to content

KFunc bpf_dynptr_is_null

v6.5

Returns true if the dynptr is null / invalid.

Definition

Returns true if the dynptr is null / invalid (determined by whether ptr->data is NULL), else false if the dynptr is a valid dynptr.

bool bpf_dynptr_is_null(const struct bpf_dynptr *p)

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