Skip to content

KFunc bpf_mem_cgroup_page_state

v7.0

Read memory cGroup's page state counter.

Definition

Allows to read memory cGroup statistics. The output is in bytes.

Parameters

memcg: memory cGroup

idx: counter idx

Returns

The value of the page state counter in bytes.

Signature

long unsigned int bpf_mem_cgroup_page_state(struct mem_cgroup *memcg, int idx)

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