Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:add_medium_atom_header

Proto:static void add_medium_atom_header(struct opal_dev *cmd, bool bytestring, bool has_sign, int len)

Type:void

Parameter:

TypeParameterName
struct opal_dev *cmd
boolbytestring
boolhas_sign
intlen
578  header0 = MEDIUM_ATOM_ID
579  header0 |= If bytestring Then MEDIUM_ATOM_BYTESTRING Else 0
580  header0 |= If has_sign Then MEDIUM_ATOM_SIGNED Else 0
581  header0 |= len >> 8 & MEDIUM_ATOM_LEN_MASK
583  cmd[pos++] = header0
584  cmd[pos++] = len
Caller
NameDescribe
add_bytestring_header