Skip to content

KFunc css_rstat_flush

v6.16

Flush stats in css's subtree

Definition

Collect all per-CPU stats in css->cgroup'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 css->cgroup off the ->updated_children lists.

This function may block.

Parameters

css: target cgroup subsystem state

Signature

void css_rstat_flush(struct cgroup_subsys_state *css)

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