函数逻辑报告 |
Source Code:block\badblocks.c |
Create Date:2022-07-27 19:00:01 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:adblocks_show() - sysfs access to bad-blocks list*@bb: the badblocks structure that holds all badblock information*@page: buffer received from sysfs*@unack: weather to show unacknowledged badblocks* Return:* Length of returned data
函数原型:ssize_t badblocks_show(struct badblocks *bb, char *page, int unack)
返回类型:ssize_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct badblocks * | bb | |
| char * | page | |
| int | unack |
| 471 | p等于 badblock list |
| 477 | retry : |
| 480 | len等于0 |
| 481 | i等于0 |
| 483 | 当len小于PAGE_SIZE且i小于 count of bad blocks 循环 |
| 488 | i自加 |
| 497 | 如果unack且len恒等于0则 there probably are unacknowledged * bad blocks. This is only cleared * when a read discovers none等于0 |
| 500 | 如果read_seqretry( & lock, seq)则转到:retry |
| 503 | 返回:len |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |