Skip to content

KFunc cgroup_rstat_flush

v6.1

Flush stats in cgrp's subtree

Definition

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

This also gets all cGroups in the sub-tree 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