Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:response_get_string

Proto:static size_t response_get_string(const struct parsed_resp *resp, int n, const char **store)

Type:size_t

Parameter:

TypeParameterName
const struct parsed_resp *resp
intn
const char **store
921  * store = NULL
922  tok = response_get_token(resp, n)
923  If IS_ERR(tok) Then Return 0
926  If type != OPAL_DTA_TOKENID_BYTESTRING Then
927  pr_debug("Token is not a byte string!\n")
928  Return 0
932  Case width == OPAL_WIDTH_TINY
933  Case width == OPAL_WIDTH_SHORT
934  skip = 1
935  Break
936  Case width == OPAL_WIDTH_MEDIUM
937  skip = 2
938  Break
939  Case width == OPAL_WIDTH_LONG
940  skip = 4
941  Break
942  Default
943  pr_debug("Token has invalid width!\n")
944  Return 0
947  store = pos + skip
949  Return len - skip
Caller
NameDescribe
get_active_key_cont
get_msid_cpin_pin
read_table_data_cont