Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:response_status

Proto:static u8 response_status(const struct parsed_resp *resp)

Type:u8

Parameter:

TypeParameterName
const struct parsed_resp *resp
986  tok = response_get_token(resp, 0)
987  If response_token_matches(tok, OPAL_ENDOFSESSION) Then Return 0
990  If num < 5 Then Return DTAERROR_NO_METHOD_STATUS
993  tok = response_get_token(resp, num - 5)
994  If Not response_token_matches(tok, OPAL_STARTLIST) Then Return DTAERROR_NO_METHOD_STATUS
997  tok = response_get_token(resp, num - 1)
998  If Not response_token_matches(tok, OPAL_ENDLIST) Then Return DTAERROR_NO_METHOD_STATUS
1001  Return response_get_u64(resp, num - 4)
Caller
NameDescribe
parse_and_check_statusParses and checks for errors