函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_new_pw

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

返回类型:int

参数:

类型参数名称
struct opal_dev *dev
void *data
1685  usr等于data
1687  memcpy(cpin_uid, opaluid[OPAL_C_PIN_ADMIN1], OPAL_UID_LENGTH)
1689  如果who不等于OPAL_ADMIN1
1690  cpin_uid[5]等于0x03
1691  如果sumcpin_uid[7]等于lr加1
1693  否则cpin_uid[7]等于who
1697  如果generic_pw_cmd(key, key_len, cpin_uid, dev)则
1699  pr_debug("Error building set password command.\n")
1700  返回:负ERANGE
1703  返回:finalize_and_send(dev, Parses and checks for errors )