| Function report | 
| Source Code: block\badblocks.c | Create Date:2022-07-28 17:24:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:adblocks_check() - check a given range for bad sectors*@bb: the badblocks structure that holds all badblock information*@s: sector (start) at which to check for badblocks*@sectors: number of sectors to check for badblocks*@first_bad: pointer to store
Proto:int badblocks_check(struct badblocks *bb, sector_t s, int sectors, sector_t *first_bad, int *bad_sectors)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct badblocks * | bb | |
| sector_t | s | |
| int | sectors | |
| sector_t * | first_bad | |
| int * | bad_sectors | 
| 58 | p = badblock list | 
| 72 | retry : | 
| 74 | lo = 0 | 
| 75 | rv = 0 | 
| 76 | hi = count of bad blocks | 
| 121 | If read_seqretry( & lock, seq) Then Go to retry | 
| 124 | Return rv | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |