函数逻辑报告 |
Source Code:block\blk-iocost.c |
Create Date:2022-07-27 19:23:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:current_hweight
函数原型:static void current_hweight(struct ioc_gq *iocg, unsigned int *hw_activep, unsigned int *hw_inusep)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ioc_gq * | iocg | |
unsigned int * | hw_activep | |
unsigned int * | hw_inusep |
965 | ioc_gen等于atomic_read( & r lazy hweights ) |
966 | 如果ioc_gen恒等于hweight_gen则转到:out |
979 | smp_rmb() |
981 | hwa等于hwi等于HWEIGHT_WHOLE |
991 | 如果非active_sum或非inuse_sum则继续下一循环 |
994 | active_sum等于两数取大(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 | 如果hw_activep则hw_activep等于hweight_active |
1007 | 如果hw_inusep则hw_inusep等于hweight_inuse |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |