函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup-v1.c Create Date:2022-07-27 12:15:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Display information about each subsystem and each hierarchy

函数原型:int proc_cgroupstats_show(struct seq_file *m, void *v)

返回类型:int

参数:

类型参数名称
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  返回:0