Skip to content

KFunc cgroup_rstat_flush

v6.1

Flush stats in cgrp's subtree

Definition

Collect all per-cpu stats in cgrp's subtree into the global countersand propagate them upwards. After this function returns, all cgroups in the subtree have up-to-date ->stat.

This also gets all cgroups in the subtree including cgrp off the ->updated_children lists.

This function may block.

Parameters

cgrp: target cgroup

void cgroup_rstat_flush(struct cgroup *cgrp)

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