Function report |
Source Code:block\sed-opal.c |
Create Date:2022-07-28 18:11:31 |
Last Modify:2020-03-17 23:36:33 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:start_generic_opal_session
Proto:static int start_generic_opal_session(struct opal_dev *dev, enum opal_uid auth, enum opal_uid sp_type, const char *key, u8 key_len)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct opal_dev * | dev | |
enum opal_uid | auth | |
enum opal_uid | sp_type | |
const char * | key | |
u8 | key_len |
1407 | If key == NULL && auth != OPAL_ANYBODY_UID Then Return OPAL_INVAL_PARAM |
1410 | hsn = GENERIC_HOST_SESSION_NUM |
1411 | err = cmd_start(dev, opaluid[OPAL_SMUID_UID], TCG Storage SSC Methods.* Derived from: TCG_Storage_Architecture_Core_Spec_v2.01_r1.00* Section: 6.3 Assigned UIDs[OPAL_STARTSESSION]) |
1414 | add_token_u64( & err, dev, hsn) |
1415 | add_token_bytestring( & err, dev, opaluid[sp_type], OPAL_UID_LENGTH) |
1416 | add_token_u8( & err, dev, 1) |
1419 | Case auth == OPAL_ANYBODY_UID |
1420 | Break |
1421 | Case auth == OPAL_ADMIN1_UID |
1422 | Case auth == OPAL_SID_UID |
1423 | Case auth == OPAL_PSID_UID |
1424 | add_token_u8( & err, dev, OPAL_STARTNAME) |
1425 | add_token_u8( & err, dev, 0) |
1426 | add_token_bytestring( & err, dev, key, key_len) |
1427 | add_token_u8( & err, dev, OPAL_ENDNAME) |
1428 | add_token_u8( & err, dev, OPAL_STARTNAME) |
1429 | add_token_u8( & err, dev, 3) |
1430 | add_token_bytestring( & err, dev, opaluid[auth], OPAL_UID_LENGTH) |
1432 | add_token_u8( & err, dev, OPAL_ENDNAME) |
1433 | Break |
1434 | Default |
1436 | Return OPAL_INVAL_PARAM |
1439 | If err Then |
1444 | Return finalize_and_send(dev, start_opal_session_cont) |
Name | Describe |
---|---|
start_anybodyASP_opal_session | |
start_SIDASP_opal_session | |
start_admin1LSP_opal_session | |
start_PSID_opal_session |
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 |