Skip to content

KFunc bpf_dynptr_size

v6.5

Returns the number of usable bytes in a dynptr.

Definition

Signature

u64 bpf_dynptr_size(const struct bpf_dynptr *p)

Note

In v6.19 the signature of this kfunc changed from u32 to u64 types the return value. This may require CO-RE logic to select the correct kfunc.

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