函数逻辑报告 | 
Source Code:block\badblocks.c | 
Create Date:2022-07-27 19:00:05 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:__badblocks_init
函数原型:static int __badblocks_init(struct device *dev, struct badblocks *bb, int enable)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct device * | dev | |
| struct badblocks * | bb | |
| int | enable | 
| 548 | count of bad blocks 等于0 | 
| 553 | 如果dev则 badblock list 等于devm_kzalloc(dev, PAGE_SIZE, GFP_KERNEL) | 
| 555 | 否则 badblock list 等于分配内存并置零 | 
| 557 | 如果非 badblock list 则 | 
| 559 | 返回:负ENOMEM | 
| 561 | seqlock_init( & lock) | 
| 563 | 返回:0 | 
| 名称 | 描述 | 
|---|---|
| badblocks_init | adblocks_init() - initialize the badblocks structure*@bb: the badblocks structure that holds all badblock information*@enable: weather to enable badblocks accounting* Return:* 0: success* -ve errno: on error | 
| devm_init_badblocks | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |