Skip to content

KFunc bpf_iter_bits_next

v6.11

Get the next bit in a bpf_iter_bits

Definition

This function returns a pointer to a number representing the value of the next bit in the bits.

Parameters

it: The bpf_iter_bits to be checked

Return

If there are no further bits available, it returns NULL.

int *bpf_iter_bits_next(struct bpf_iter_bits *it)

Note

The pointer returned by the kfunc may be NULL. Hence, it forces the user to do a NULL check on the pointer returned from the kfunc before making use of it (dereferencing or passing to another helper).

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