Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:activate_lsp

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

Type:int

Parameter:

TypeParameterName
struct opal_dev *dev
void *data
1887  opal_act = data
1891  err = cmd_start(dev, opaluid[OPAL_LOCKINGSP_UID], TCG Storage SSC Methods.* Derived from: TCG_Storage_Architecture_Core_Spec_v2.01_r1.00* Section: 6.3 Assigned UIDs[OPAL_ACTIVATE])
1894  If sum Then
1895  err = build_locking_range(user_lr, size of user_lr , lr[0])
1897  If err Then Return err
1900  add_token_u8( & err, dev, OPAL_STARTNAME)
1901  add_token_u64( & err, dev, OPAL_SUM_SET_LIST)
1903  add_token_u8( & err, dev, OPAL_STARTLIST)
1904  add_token_bytestring( & err, dev, user_lr, OPAL_UID_LENGTH)
1905  When i < num_lrs cycle
1906  user_lr[7] = lr[i]
1909  add_token_u8( & err, dev, OPAL_ENDLIST)
1910  add_token_u8( & err, dev, OPAL_ENDNAME)
1913  If err Then
1914  pr_debug("Error building Activate LockingSP command.\n")
1915  Return err
1918  Return finalize_and_send(dev, Parses and checks for errors )