Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup-v1.c Create Date:2022-07-28 11:13:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Display information about each subsystem and each hierarchy

Proto:int proc_cgroupstats_show(struct seq_file *m, void *v)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
void *v
663  seq_puts(m, "#subsys_name\thierarchy\tnum_cgroups\tenabled\n")
669  mutex_lock( & cgroup_mutex is the master lock)
671  r_each_subsys - iterate all enabled cgroup subsystems*@ss: the iteration cursor*@ssid: the index of @ss, CGROUP_SUBSYS_COUNT after reaching the end(ss, i)
672  seq_printf(m, "%s\t%d\t%d\t%d\n", optional, initialized automatically during boot if not set , Unique id for this hierarchy. , atomic_read( & Number of cgroups in the hierarchy, used only for /proc/cgroups ), group_ssid_enabled - cgroup subsys enabled test by subsys ID*@ssid: subsys ID of interest* cgroup_subsys_enabled() can only be used with literal subsys names which* is fine for individual subsystems but unsuitable for cgroup core. This)
677  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
678  Return 0