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:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cgroup1_show_options

Proto:static int cgroup1_show_options(struct seq_file *seq, struct kernfs_root *kf_root)

Type:int

Parameter:

TypeParameterName
struct seq_file *seq
struct kernfs_root *kf_root
852  root = cgroup_root_from_kf(kf_root)
856  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, ssid)
857  If The bitmask of subsystems attached to this hierarchy & 1 << ssid Then seq_show_options - display mount options with appropriate escapes.*@m: the seq_file handle*@name: the mount option name*@value: the mount option name's value, can be NULL
859  If Hierarchy-specific flags & CGRP_ROOT_NOPREFIX Then seq_puts(seq, ",noprefix")
861  If Hierarchy-specific flags & CGRP_ROOT_XATTR Then seq_puts(seq, ",xattr")
863  If Hierarchy-specific flags & CGRP_ROOT_CPUSET_V2_MODE Then seq_puts(seq, ",cpuset_v2_mode")
866  spin_lock( & Protects cgroup_subsys->release_agent_path. Modifying it also requires* cgroup_mutex. Reading requires either cgroup_mutex or this spinlock.)
867  If strlen - Find the length of a string*@s: The string to be sized Then seq_show_options - display mount options with appropriate escapes.*@m: the seq_file handle*@name: the mount option name*@value: the mount option name's value, can be NULL
870  spin_unlock( & Protects cgroup_subsys->release_agent_path. Modifying it also requires* cgroup_mutex. Reading requires either cgroup_mutex or this spinlock.)
872  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then seq_puts(seq, ",clone_children")
874  If strlen - Find the length of a string*@s: The string to be sized Then seq_show_options - display mount options with appropriate escapes.*@m: the seq_file handle*@name: the mount option name*@value: the mount option name's value, can be NULL
876  Return 0