函数逻辑报告 |
Source Code:block\sed-opal.c |
Create Date:2022-07-27 19:47:26 |
Last Modify:2020-03-17 23:36:33 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:read_table_data
函数原型:static int read_table_data(struct opal_dev *dev, void *data)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct opal_dev * | dev | |
void * | data |
2013 | err等于see TCG SAS 5.3.2.3 for a description of the available columns* the result is provided in dev->resp->tok[4] |
2014 | 如果err则 |
2019 | table_len等于response_get_u64( & parsed, 4) |
2023 | pr_debug("Read size exceeds the Table size limits (%llu vs. %llu)\n", offset + read_size, table_len) |
2025 | 返回:负EINVAL |
2029 | err等于cmd_start(dev, table_uid, TCG Storage SSC Methods.* Derived from: TCG_Storage_Architecture_Core_Spec_v2.01_r1.00* Section: 6.3 Assigned UIDs[OPAL_GET]) |
2031 | add_token_u8( & err, dev, OPAL_STARTLIST) |
2032 | add_token_u8( & err, dev, OPAL_STARTNAME) |
2033 | add_token_u8( & err, dev, OPAL_STARTROW) |
2034 | add_token_u64( & err, dev, offset + off) |
2035 | add_token_u8( & err, dev, OPAL_ENDNAME) |
2037 | add_token_u8( & err, dev, OPAL_STARTNAME) |
2038 | add_token_u8( & err, dev, OPAL_ENDROW) |
2040 | len等于两数取小(max_read_size, (size_t)(read_size - off)) |
2043 | add_token_u8( & err, dev, OPAL_ENDNAME) |
2044 | add_token_u8( & err, dev, OPAL_ENDLIST) |
2046 | 如果err则 |
2051 | err等于finalize_and_send(dev, read_table_data_cont) |
2056 | 如果prev_d_len大于len加1则 |
2062 | 如果copy_to_user(dst + off, prev_data, prev_d_len)则 |
2067 | prev_data = NULL |
2072 | 返回:err |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |