Function report |
Source Code:block\blk-cgroup.c |
Create Date:2022-07-28 17:39:19 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lkg_alloc - allocate a blkg*@blkcg: block cgroup the new blkg is associated with*@q: request_queue the new blkg is associated with*@gfp_mask: allocation mask to use* Allocate a new blkg assocating @blkcg and @q.
Proto:static struct blkcg_gq *blkg_alloc(struct blkcg *blkcg, struct request_queue *q, gfp_t gfp_mask)
Type:struct blkcg_gq
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct blkcg * | blkcg | |
| struct request_queue * | q | |
| gfp_t | gfp_mask |
| 152 | If Not blkg Then Return NULL |
| 158 | iostat_cpu = alloc_percpu_gfp(structblkg_iostat_set, gfp_mask) |
| 159 | If Not iostat_cpu Then Go to err_free |
| 165 | bio_list_init( & async_bios) |
| 166 | INIT_WORK( & async_bio_work, blkg_async_bio_workfn) |
| 169 | u64_stats_init( & sync) |
| 170 | for_each_possible_cpu(cpu) |
| 171 | u64_stats_init( & sync) |
| 174 | pol = blkcg_policy[i] |
| 177 | If Not blkcg_policy_enabled(q, pol) Then Continue |
| 181 | pd = pd_alloc_fn(gfp_mask, q, blkcg) |
| 190 | Return blkg |
| 192 | err_free : |
| 194 | Return NULL |
| Name | Describe |
|---|---|
| blkg_create | If @new_blkg is %NULL, this function tries to allocate a new one as* necessary using %GFP_NOWAIT. @new_blkg is always consumed on return. |
| blkg_conf_prep | lkg_conf_prep - parse and prepare for per-blkg config update*@blkcg: target block cgroup*@pol: target policy*@input: input string*@ctx: blkg_conf_ctx to be filled* Parse per-blkg config update from @input and initialize @ctx with the* result |
| blkcg_init_queue | lkcg_init_queue - initialize blkcg part of request queue*@q: request_queue to initialize* Called from blk_alloc_queue_node(). Responsible for initializing blkcg* part of new request_queue @q.* RETURNS:* 0 on success, -errno on failure. |
| 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 |