函数逻辑报告 |
Source Code:block\blk-sysfs.c |
Create Date:2022-07-27 18:36:36 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:queue_max_sectors_store
函数原型:static ssize_t queue_max_sectors_store(struct request_queue *q, const char *page, size_t count)
返回类型:ssize_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| 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 | 如果max_sectors_kb大于max_hw_sectors_kb或max_sectors_kb小于page_kb则返回:负EINVAL |
| 238 | spin_lock_irq( & queue_lock) |
| 239 | max_sectors等于max_sectors_kb左移1位 |
| 241 | spin_unlock_irq( & queue_lock) |
| 243 | 返回:ret |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |