Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_new_pw

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

Type:int

Parameter:

TypeParameterName
struct opal_dev *dev
void *data
1685  usr = data
1687  memcpy(cpin_uid, opaluid[OPAL_C_PIN_ADMIN1], OPAL_UID_LENGTH)
1689  If who != OPAL_ADMIN1 Then
1690  cpin_uid[5] = 0x03
1691  If sum Then cpin_uid[7] = lr + 1
1693  Else cpin_uid[7] = who
1697  If generic_pw_cmd(key, key_len, cpin_uid, dev) Then
1699  pr_debug("Error building set password command.\n")
1700  Return -ERANGE
1703  Return finalize_and_send(dev, Parses and checks for errors )