Function report |
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 activity | Download SCCT | Chinese |
Name:check_cgroupfs_options
Proto:static int check_cgroupfs_options(struct fs_context *fc)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct fs_context * | fc |
989 | ctx = cgroup_fc2context(fc) |
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) |
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 |
Name | Describe |
---|---|
cgroup1_reconfigure | |
cgroup1_root_to_use | The guts of cgroup1 mount - find or create cgroup_root to use |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |