Function report |
Source Code:block\blk-iocost.c |
Create Date:2022-07-28 17:47:39 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:current_hweight
Proto:static void current_hweight(struct ioc_gq *iocg, unsigned int *hw_activep, unsigned int *hw_inusep)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct ioc_gq * | iocg | |
| unsigned int * | hw_activep | |
| unsigned int * | hw_inusep |
| 965 | ioc_gen = atomic_read( & r lazy hweights ) |
| 966 | If ioc_gen == hweight_gen Then Go to out |
| 979 | smp_rmb() |
| 981 | hwa = hwi = HWEIGHT_WHOLE |
| 982 | When lvl <= this iocg's depth in the hierarchy and ancestors including self - 1 cycle |
| 986 | inuse_sum = READ_ONCE(child_inuse_sum) |
| 991 | If Not active_sum || Not inuse_sum Then Continue |
| 994 | active_sum = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(active, active_sum) |
| 995 | hwa = hwa * active / active_sum |
| 1001 | hweight_active = max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u32, hwa, 1) |
| 1002 | hweight_inuse = max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u32, hwi, 1) |
| 1003 | hweight_gen = ioc_gen |
| 1004 | out : |
| 1005 | If hw_activep Then hw_activep = hweight_active |
| 1007 | If hw_inusep Then hw_inusep = hweight_inuse |
| Name | Describe |
|---|---|
| iocg_kick_waitq | |
| iocg_kick_delay | |
| ioc_timer_fn | |
| ioc_rqos_throttle | |
| ioc_rqos_merge |
| 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 |