Function report |
Source Code:kernel\cgroup\cgroup-v1.c |
Create Date:2022-07-28 11:13:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cgroup1_reconfigure
Proto:int cgroup1_reconfigure(struct fs_context *fc)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct fs_context * | fc |
1043 | ctx = cgroup_fc2context(fc) |
1044 | kf_root = kernfs_root_from_sb(d_sb) |
1045 | root = cgroup_root_from_kf(kf_root) |
1046 | ret = 0 |
1052 | ret = check_cgroupfs_options(fc) |
1053 | If ret Then Go to out_unlock |
1056 | If Selected subsystems != The bitmask of subsystems attached to this hierarchy || Path for release notifications Then pr_warn("option changes via remount are deprecated (pid=%d comm=%s)\n", task_tgid_nr(current process), comm) |
1064 | If CGRP_ROOT_* flags ^ Hierarchy-specific flags || Hierarchy name && strcmp(Hierarchy name , The name for this hierarchy - may be empty ) Then |
1066 | cg_invalf(fc, "option or name mismatch, new: 0x%x \"%s\", old: 0x%x \"%s\"", CGRP_ROOT_* flags , Hierarchy name ? : "", Hierarchy-specific flags , The name for this hierarchy - may be empty ) |
1069 | Go to out_unlock |
1073 | If Not list_empty - tests whether a list is empty*@head: the list to test. Then |
1075 | Go to out_unlock |
1078 | ret = rebind_subsystems(root, added_mask) |
1079 | If ret Then Go to out_unlock |
1084 | If Path for release notifications Then |
1090 | trace_cgroup_remount(root) |
1092 | out_unlock : |
1094 | Return ret |
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 |