Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:response_get_token

Proto:static const struct opal_resp_tok *response_get_token(const struct parsed_resp *resp, int n)

Type:struct opal_resp_tok

Parameter:

TypeParameterName
const struct parsed_resp *resp
intn
736  If Not resp Then
737  pr_debug("Response is NULL\n")
738  Return ERR_PTR( - EINVAL)
741  If n >= num Then
742  pr_debug("Token number doesn't exist: %d, resp: %d\n", n, num)
744  Return ERR_PTR( - EINVAL)
747  tok = toks[n]
748  If len == 0 Then
749  pr_debug("Token length must be non-zero\n")
750  Return ERR_PTR( - EINVAL)
753  Return tok
Caller
NameDescribe
response_get_string
response_get_u64
response_status