Function report |
Source Code:block\blk-cgroup.c |
Create Date:2022-07-28 17:40:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:blkcg_css_alloc
Proto:static struct cgroup_subsys_state *blkcg_css_alloc(struct cgroup_subsys_state *parent_css)
Type:struct cgroup_subsys_state
Parameter:
Type | Parameter | Name |
---|---|---|
struct cgroup_subsys_state * | parent_css |
948 | mutex_lock( & blkcg_pol_mutex) |
950 | If Not parent_css Then |
951 | blkcg = blkcg_root |
952 | Else |
953 | blkcg = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
954 | If Not blkcg Then |
961 | pol = blkcg_policy[i] |
970 | If Not pol || Not operations Then Continue |
973 | cpd = operations (GFP_KERNEL) |
974 | If Not cpd Then |
976 | Go to free_pd_blkcg |
981 | If cpd_init_fn Then cpd_init_fn(cpd) |
985 | Process spin lock initialization( & lock) |
987 | INIT_HLIST_HEAD( & blkg_list) |
995 | Return css |
997 | free_pd_blkcg : |
1000 | cpd_free_fn(cpd[i]) |
1002 | If blkcg != blkcg_root Then kfree(blkcg) |
1004 | unlock : |
1006 | 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 |