| Function report | 
| Source Code: block\blk-throttle.c | Create Date:2022-07-28 17:42:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:throtl_pd_alloc
Proto:static struct blkg_policy_data *throtl_pd_alloc(gfp_t gfp, struct request_queue *q, struct blkcg *blkcg)
Type:struct blkg_policy_data
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| gfp_t | gfp | |
| struct request_queue * | q | |
| struct blkcg * | blkcg | 
| 493 | If Not tg Then Return NULL | 
| 496 | If blkg_rwstat_init( & stat_bytes, gfp) Then Go to err_free_tg | 
| 499 | If blkg_rwstat_init( & stat_ios, gfp) Then Go to err_exit_stat_bytes | 
| 506 | throtl_qnode_init( & qnode_on_parent[rw], tg) | 
| 510 | internally used bytes per second rate limits [generic data direction definitions ][LIMIT_MAX] = U64_MAX | 
| 515 | user configured bps limits [WRITE][LIMIT_MAX] = U64_MAX | 
| 520 | us = DFL_LATENCY_TARGET | 
| 521 | us = DFL_LATENCY_TARGET | 
| 522 | us = DFL_IDLE_THRESHOLD | 
| 523 | us = DFL_IDLE_THRESHOLD | 
| 525 | Return must be the first member | 
| 527 | err_exit_stat_bytes : | 
| 528 | blkg_rwstat_exit( & stat_bytes) | 
| 529 | err_free_tg : | 
| 531 | Return NULL | 
| 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 |