Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:generic_pw_cmd

Proto:static int generic_pw_cmd(u8 *key, size_t key_len, u8 *cpin_uid, struct opal_dev *dev)

Type:int

Parameter:

TypeParameterName
u8 *key
size_tkey_len
u8 *cpin_uid
struct opal_dev *dev
1667  err = cmd_start(dev, cpin_uid, TCG Storage SSC Methods.* Derived from: TCG_Storage_Architecture_Core_Spec_v2.01_r1.00* Section: 6.3 Assigned UIDs[OPAL_SET])
1669  add_token_u8( & err, dev, OPAL_STARTNAME)
1670  add_token_u8( & err, dev, OPAL_VALUES)
1671  add_token_u8( & err, dev, OPAL_STARTLIST)
1672  add_token_u8( & err, dev, OPAL_STARTNAME)
1673  add_token_u8( & err, dev, OPAL_PIN)
1674  add_token_bytestring( & err, dev, key, key_len)
1675  add_token_u8( & err, dev, OPAL_ENDNAME)
1676  add_token_u8( & err, dev, OPAL_ENDLIST)
1677  add_token_u8( & err, dev, OPAL_ENDNAME)
1679  Return err
Caller
NameDescribe
set_new_pw
set_sid_cpin_pin