函数逻辑报告 |
Source Code:block\sed-opal.c |
Create Date:2022-07-27 19:47:03 |
Last Modify:2020-03-17 23:36:33 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:add_user_to_lr
函数原型:static int add_user_to_lr(struct opal_dev *dev, void *data)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct opal_dev * | dev | |
void * | data |
1730 | 如果l_state恒等于 0010 则memcpy(lr_buffer, opaluid[OPAL_LOCKINGRANGE_ACE_WRLOCKED], OPAL_UID_LENGTH) |
1736 | memcpy(user_uid, opaluid[OPAL_USER1_UID], OPAL_UID_LENGTH) |
1740 | err等于cmd_start(dev, lr_buffer, TCG Storage SSC Methods.* Derived from: TCG_Storage_Architecture_Core_Spec_v2.01_r1.00* Section: 6.3 Assigned UIDs[OPAL_SET]) |
1742 | add_token_u8( & err, dev, OPAL_STARTNAME) |
1743 | add_token_u8( & err, dev, OPAL_VALUES) |
1745 | add_token_u8( & err, dev, OPAL_STARTLIST) |
1746 | add_token_u8( & err, dev, OPAL_STARTNAME) |
1747 | add_token_u8( & err, dev, 3) |
1749 | add_token_u8( & err, dev, OPAL_STARTLIST) |
1752 | add_token_u8( & err, dev, OPAL_STARTNAME) |
1753 | add_token_bytestring( & err, dev, opaluid[OPAL_HALF_UID_AUTHORITY_OBJ_REF], OPAL_UID_LENGTH / 2) |
1756 | add_token_bytestring( & err, dev, user_uid, OPAL_UID_LENGTH) |
1757 | add_token_u8( & err, dev, OPAL_ENDNAME) |
1760 | add_token_u8( & err, dev, OPAL_STARTNAME) |
1761 | add_token_bytestring( & err, dev, opaluid[OPAL_HALF_UID_AUTHORITY_OBJ_REF], OPAL_UID_LENGTH / 2) |
1764 | add_token_bytestring( & err, dev, user_uid, OPAL_UID_LENGTH) |
1765 | add_token_u8( & err, dev, OPAL_ENDNAME) |
1768 | add_token_u8( & err, dev, OPAL_STARTNAME) |
1769 | add_token_bytestring( & err, dev, opaluid[OPAL_HALF_UID_BOOLEAN_ACE], OPAL_UID_LENGTH / 2) |
1771 | add_token_u8( & err, dev, 1) |
1772 | add_token_u8( & err, dev, OPAL_ENDNAME) |
1775 | add_token_u8( & err, dev, OPAL_ENDLIST) |
1776 | add_token_u8( & err, dev, OPAL_ENDNAME) |
1777 | add_token_u8( & err, dev, OPAL_ENDLIST) |
1778 | add_token_u8( & err, dev, OPAL_ENDNAME) |
1780 | 如果err则 |
1785 | 返回:finalize_and_send(dev, Parses and checks for errors ) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |