Skip to content

KFunc bpf_map_sum_elem_count

v6.6

Get the sum of a map per-CPU element counters.

Definition

Get the sum of a map per-CPU element counters. If a map doesn't implement the counter, then the function will always return 0.

s64 bpf_map_sum_elem_count(const struct bpf_map *map)

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