函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\sed-opal.c Create Date:2022-07-27 19:46:09
Last Modify:2020-03-17 23:36:33 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:gen_key

函数原型:static int gen_key(struct opal_dev *dev, void *data)

返回类型:int

参数:

类型参数名称
struct opal_dev *dev
void *data
1167  memcpy(uid, prev_data, 两数取小(uid的长度, prev_d_len))
1168  释放内存
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  如果err
1174  pr_debug("Error building gen key command\n")
1175  返回:err
1179  返回:finalize_and_send(dev, Parses and checks for errors )