Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\sed-opal.c Create Date:2022-07-28 18:11:44
Last Modify:2020-03-17 23:36:33 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:internal_activate_user

Proto:static int internal_activate_user(struct opal_dev *dev, void *data)

Type:int

Parameter:

TypeParameterName
struct opal_dev *dev
void *data
1557  session = data
1561  memcpy(uid, opaluid[OPAL_USER1_UID], OPAL_UID_LENGTH)
1562  uid[7] = who
1564  err = cmd_start(dev, uid, TCG Storage SSC Methods.* Derived from: TCG_Storage_Architecture_Core_Spec_v2.01_r1.00* Section: 6.3 Assigned UIDs[OPAL_SET])
1565  add_token_u8( & err, dev, OPAL_STARTNAME)
1566  add_token_u8( & err, dev, OPAL_VALUES)
1567  add_token_u8( & err, dev, OPAL_STARTLIST)
1568  add_token_u8( & err, dev, OPAL_STARTNAME)
1569  add_token_u8( & err, dev, 5)
1570  add_token_u8( & err, dev, Boolean )
1571  add_token_u8( & err, dev, OPAL_ENDNAME)
1572  add_token_u8( & err, dev, OPAL_ENDLIST)
1573  add_token_u8( & err, dev, OPAL_ENDNAME)
1575  If err Then
1576  pr_debug("Error building Activate UserN command.\n")
1577  Return err
1580  Return finalize_and_send(dev, Parses and checks for errors )