Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:gen_key

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

Type:int

Parameter:

TypeParameterName
struct opal_dev *dev
void *data
1167  memcpy(uid, prev_data, min - return minimum of two values of the same or compatible types*@x: first value*@y: second value( size of uid , prev_d_len))
1168  kfree(prev_data)
1169  prev_data = NULL
1171  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_GENKEY])
1173  If err Then
1174  pr_debug("Error building gen key command\n")
1175  Return err
1179  Return finalize_and_send(dev, Parses and checks for errors )