Skip to content

KFunc bpf_mem_cgroup_page_state

v7.0

Flush memory cGroup's statistics.

Definition

Propagate memory cGroup's statistics up the cGroup tree.

Parameters

memcg: memory cGroup

Signature

void bpf_mem_cgroup_flush_stats(struct mem_cgroup *memcg)

Note

This function may sleep, and therefore can only be used from sleepable programs.

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