| Function report | 
| Source Code: kernel\cgroup\cgroup.c | Create Date:2022-07-28 11:10:54 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:cgroup_mkdir
Proto:int cgroup_mkdir(struct kernfs_node *parent_kn, const char *name, umode_t mode)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kernfs_node * | parent_kn | |
| const char * | name | |
| umode_t | mode | 
| 5296 | If strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for Then Return -EINVAL | 
| 5303 | If Not cgroup_check_hierarchy_limits(parent) Then | 
| 5305 | Go to out_unlock | 
| 5308 | cgrp = The returned cgroup is fully initialized including its control mask, but* it isn't associated with its kernfs_node and doesn't have the control* mask applied. | 
| 5311 | Go to out_unlock | 
| 5318 | kernfs_get( cgroup kernfs entry ) | 
| 5321 | If ret Then Go to out_destroy | 
| 5324 | ret = ss_populate_dir - create subsys files in a cgroup directory*@css: target css* On failure, no file is added. | 
| 5325 | If ret Then Go to out_destroy | 
| 5329 | If ret Then Go to out_destroy | 
| 5335 | kernfs_activate( cgroup kernfs entry ) | 
| 5337 | ret = 0 | 
| 5338 | Go to out_unlock | 
| 5340 | out_destroy : | 
| 5342 | out_unlock : | 
| 5344 | 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 |