Function report | 
Source Code:block\badblocks.c | 
Create Date:2022-07-28 17:24:33 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:adblocks_clear() - Remove a range of bad blocks to the table
Proto:int badblocks_clear(struct badblocks *bb, sector_t s, int sectors)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct badblocks * | bb | |
| sector_t | s | |
| int | sectors | 
| 336 | rv = 0 | 
| 351 | write_seqlock_irq( & lock) | 
| 353 | p = badblock list | 
| 354 | lo = 0 | 
| 355 | hi = count of bad blocks | 
| 392 | lo-- | 
| 405 | Break | 
| 407 | lo-- | 
| 414 | count of bad blocks -= hi - lo - 1 | 
| 418 | badblocks_update_acked(bb) | 
| 419 | changed = 1 | 
| 420 | out : | 
| 421 | write_sequnlock_irq( & lock) | 
| 422 | 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  |