| Function report | 
| Source Code: block\kyber-iosched.c | Create Date:2022-07-28 17:52:25 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:kyber_get_domain_token
Proto:static int kyber_get_domain_token(struct kyber_queue_data *kqd, struct kyber_hctx_data *khd, struct blk_mq_hw_ctx *hctx)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kyber_queue_data * | kqd | |
| struct kyber_hctx_data * | khd | |
| struct blk_mq_hw_ctx * | hctx | 
| 706 | sched_domain = cur_domain | 
| 707 | domain_tokens = * Each scheduling domain has a limited number of in-flight requests * device-wide, limited by these tokens.[sched_domain] | 
| 708 | wait = domain_wait[sched_domain] | 
| 712 | nr = __sbitmap_queue_get(domain_tokens) | 
| 720 | ws = sbq_wait_ptr() - Get the next wait queue to use for a &struct* sbitmap_queue.*@sbq: Bitmap queue to wait on.*@wait_index: A counter per "user" of @sbq. | 
| 722 | domain_ws[sched_domain] = ws | 
| 729 | nr = __sbitmap_queue_get(domain_tokens) | 
| 746 | Return nr | 
| Name | Describe | 
|---|---|
| kyber_dispatch_cur_domain | 
| 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 |