Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Determine if we're in the Manufactured Inactive or Active state

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

Type:int

Parameter:

TypeParameterName
struct opal_dev *dev
void *data
1927  err = quest @column from table @table on device @dev. On success, the column* data will be available in dev->resp->tok[4]
1929  If err Then Return err
1932  lc_status = response_get_u64( & parsed, 4)
1935  If lc_status != OPAL_MANUFACTURED_INACTIVE Then
1936  pr_debug("Couldn't determine the status of the Lifecycle state\n")
1937  Return -ENODEV
1940  Return 0