函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\sed-opal.c Create Date:2022-07-27 19:45:25
Last Modify:2020-03-17 23:36:33 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:add_bytestring_header

函数原型:static u8 *add_bytestring_header(int *err, struct opal_dev *cmd, size_t len)

返回类型:u8

参数:

类型参数名称
int *err
struct opal_dev *cmd
size_tlen
611  header_len等于1
612  bool is_short_atom = true
614  如果len按位与SHORT_ATOM_LEN_MASK的反则
615  header_len等于2
616  is_short_atom = false
619  如果非can_add(err, cmd, header_len + len)则
620  pr_debug("Error adding bytestring: end of buffer.\n")
621  返回:NULL
624  如果is_short_atomadd_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  否则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  返回:cmd[pos]
调用者
名称描述
add_token_bytestring
generic_table_write_data