Function report |
Source Code:block\blk-sysfs.c |
Create Date:2022-07-28 17:01:24 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:queue_max_sectors_store
Proto:static ssize_t queue_max_sectors_store(struct request_queue *q, const char *page, size_t count)
Type:ssize_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct request_queue * | q | |
| const char * | page | |
| size_t | count |
| 224 | max_hw_sectors_kb = queue_max_hw_sectors(q) >> 1 , page_kb = 1 << PAGE_SHIFT determines the page size - 10 |
| 227 | ret = queue_var_store( & max_sectors_kb, page, count) |
| 232 | max_hw_sectors_kb = min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(max_hw_sectors_kb, (unsignedlong)max_dev_sectors >> 1) |
| 235 | If max_sectors_kb > max_hw_sectors_kb || max_sectors_kb < page_kb Then Return -EINVAL |
| 238 | spin_lock_irq( & queue_lock) |
| 239 | max_sectors = max_sectors_kb << 1 |
| 241 | spin_unlock_irq( & queue_lock) |
| 243 | Return ret |
| 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 |