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

Name:check_cgroupfs_options

Proto:static int check_cgroupfs_options(struct fs_context *fc)

Type:int

Parameter:

TypeParameterName
struct fs_context *fc
989  ctx = cgroup_fc2context(fc)
990  mask = U16_MAX
991  enabled = 0
998  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)
999  If 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 && Not cgroup1_ssid_disabled(i) Then enabled |= 1 << i
1002  Selected subsystems &= enabled
1008  If Not Selected subsystems && Not User explicitly requested empty subsystem && Not Hierarchy name Then Seen 'all' option = true
1011  If Seen 'all' option Then
1013  If Selected subsystems Then Return cg_invalf(fc, "cgroup1: subsys name conflicts with all")
1016  Selected subsystems = enabled
1023  If Not Selected subsystems && Not Hierarchy name Then Return cg_invalf(fc, "cgroup1: Need name or subsystem set")
1031  If CGRP_ROOT_* flags & CGRP_ROOT_NOPREFIX && Selected subsystems & mask Then Return cg_invalf(fc, "cgroup1: noprefix used incorrectly")
1035  If Selected subsystems && User explicitly requested empty subsystem Then Return cg_invalf(fc, "cgroup1: none used incorrectly")
1038  Return 0
Caller
NameDescribe
cgroup1_reconfigure
cgroup1_root_to_useThe guts of cgroup1 mount - find or create cgroup_root to use