Function report |
Source Code:block\blk-cgroup.c |
Create Date:2022-07-28 17:40:44 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lkcg_policy_register - register a blkcg policy*@pol: blkcg policy to register* Register @pol with blkcg core. Might sleep and @pol may be modified on* successful registration. Returns 0 on success and -errno on failure.
Proto:int blkcg_policy_register(struct blkcg_policy *pol)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct blkcg_policy * | pol |
1381 | mutex_lock( & blkcg_pol_mutex) |
1385 | When i < Maximum number of blkcg policies allowed to be registered concurrently.* Defined here to simplify include dependency. cycle If Not blkcg_policy[i] Then |
1387 | Break |
1389 | pr_warn("blkcg_policy_register: BLKCG_MAX_POLS too small\n") |
1390 | Go to err_unlock |
1394 | If Not operations ^ Not cpd_free_fn || Not pd_alloc_fn ^ Not pd_free_fn Then Go to err_unlock |
1400 | blkcg_policy[plid] = pol |
1403 | If operations Then |
1407 | cpd = operations (GFP_KERNEL) |
1408 | If Not cpd Then Go to err_free_cpds |
1414 | If cpd_init_fn Then cpd_init_fn(cpd) |
1429 | Return 0 |
1431 | err_free_cpds : |
1432 | If cpd_free_fn Then |
1440 | = |
1441 | err_unlock : |
1444 | Return ret |
Name | Describe |
---|---|
throtl_init | |
iolatency_init | |
ioc_init |
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 |