函数逻辑报告 |
Source Code:lib\sbitmap.c |
Create Date:2022-07-27 08:21:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sbitmap_init_node
函数原型:int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift, gfp_t flags, int node)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sbitmap * | sb | |
unsigned int | depth | |
int | shift | |
gfp_t | flags | |
int | node |
50 | 如果shift小于0则 |
58 | 如果depth大于等于4则 |
63 | bits_per_word等于1U左移shift位 |
64 | 如果bits_per_word大于BITS_PER_LONG则返回:负EINVAL |
69 | @map_nr: Number of words (cachelines) being used for the bitmap.等于DIV_ROUND_UP(@depth: Number of bits used in the whole bitmap., bits_per_word) |
71 | 如果depth恒等于0则 |
72 | @map: Allocated bitmap. = NULL |
73 | 返回:0 |
76 | @map: Allocated bitmap.等于kcalloc_node(@map_nr: Number of words (cachelines) being used for the bitmap., @map: Allocated bitmap.的长度, flags, node) |
77 | 如果非@map: Allocated bitmap.则返回:负ENOMEM |
85 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |