函数逻辑报告 |
Source Code:block\badblocks.c |
Create Date:2022-07-27 18:59:43 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:adblocks_set() - Add a range of bad blocks to the table
函数原型:int badblocks_set(struct badblocks *bb, sector_t s, int sectors, int acknowledged)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct badblocks * | bb | |
sector_t | s | |
int | sectors | |
int | acknowledged |
168 | rv等于0 |
185 | write_seqlock_irqsave( & lock, flags) |
187 | p等于 badblock list |
188 | lo等于0 |
189 | hi等于 count of bad blocks |
235 | 如果sectors且hi小于 count of bad blocks 则 |
265 | 如果sectors恒等于0且hi小于 count of bad blocks 则 |
273 | 如果s大于等于a且newlen小于BB_MAX_LEN则 |
291 | 否则 |
292 | this_sectors等于sectors |
296 | count of bad blocks 自加 |
298 | 如果this_sectors大于BB_MAX_LEN则this_sectors等于BB_MAX_LEN |
300 | p[hi]等于BB_MAKE(s, this_sectors, acknowledged) |
301 | sectors减等于this_sectors |
302 | s加等于this_sectors |
306 | changed等于1 |
307 | 如果非acknowledged则 there probably are unacknowledged * bad blocks. This is only cleared * when a read discovers none等于1 |
309 | 否则badblocks_update_acked(bb) |
311 | write_sequnlock_irqrestore( & lock, flags) |
313 | 返回:rv |
名称 | 描述 |
---|---|
badblocks_store | adblocks_store() - sysfs access to bad-blocks list*@bb: the badblocks structure that holds all badblock information*@page: buffer received from sysfs*@len: length of data received from sysfs*@unack: weather to show unacknowledged badblocks* Return: |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |