Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:add_bytestring_header

Proto:static u8 *add_bytestring_header(int *err, struct opal_dev *cmd, size_t len)

Type:u8

Parameter:

TypeParameterName
int *err
struct opal_dev *cmd
size_tlen
611  header_len = 1
612  bool is_short_atom = true
614  If len & ~SHORT_ATOM_LEN_MASK Then
615  header_len = 2
616  is_short_atom = false
619  If Not can_add(err, cmd, header_len + len) Then
620  pr_debug("Error adding bytestring: end of buffer.\n")
621  Return NULL
624  If is_short_atom Then add_short_atom_header(cmd, true, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., len)
626  Else add_medium_atom_header(cmd, true, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., len)
629  Return cmd[pos]
Caller
NameDescribe
add_token_bytestring
generic_table_write_data