Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:response_parse_short

Proto:static ssize_t response_parse_short(struct opal_resp_tok *tok, const u8 *pos)

Type:ssize_t

Parameter:

TypeParameterName
struct opal_resp_tok *tok
const u8 *pos
776  pos = pos
777  len = (pos[0] & SHORT_ATOM_LEN_MASK) + 1
778  width = OPAL_WIDTH_SHORT
780  If pos[0] & SHORT_ATOM_BYTESTRING Then
781  type = OPAL_DTA_TOKENID_BYTESTRING
782  Else if pos[0] & SHORT_ATOM_SIGNED Then
783  type = OPAL_DTA_TOKENID_SINT
784  Else
785  u_integer = 0
786  b = 0
788  type = OPAL_DTA_TOKENID_UINT
789  If len > 9 Then
790  pr_debug("uint64 with more than 8 bytes\n")
791  Return -EINVAL
793  When i > 0 cycle
794  u_integer |= pos[i] << 8 * b
795  b++
797  u = u_integer
800  Return len
Caller
NameDescribe
response_parse