函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_cgroupfs_options

函数原型:static int check_cgroupfs_options(struct fs_context *fc)

返回类型:int

参数:

类型参数名称
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  如果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且非cgroup1_ssid_disabled(i)则enabled或等于1左移i
1002  Selected subsystems 与等于enabled
1008  如果非Selected subsystems 且非User explicitly requested empty subsystem 且非Hierarchy name Seen 'all' option = true
1011  如果Seen 'all' option
1013  如果Selected subsystems 则返回:cg_invalf(fc, "cgroup1: subsys name conflicts with all")
1016  Selected subsystems 等于enabled
1023  如果非Selected subsystems 且非Hierarchy name 则返回:cg_invalf(fc, "cgroup1: Need name or subsystem set")
1031  如果CGRP_ROOT_* flags 按位与CGRP_ROOT_NOPREFIXSelected subsystems 按位与mask则返回:cg_invalf(fc, "cgroup1: noprefix used incorrectly")
1035  如果Selected subsystems User explicitly requested empty subsystem 则返回:cg_invalf(fc, "cgroup1: none used incorrectly")
1038  返回:0
调用者
名称描述
cgroup1_reconfigure
cgroup1_root_to_useThe guts of cgroup1 mount - find or create cgroup_root to use