函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test-string_helpers.c Create Date:2022-07-27 07:23:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:test_string_check_buf

函数原型:static __init bool test_string_check_buf(const char *name, unsigned int flags, char *in, size_t p, char *out_real, size_t q_real, char *out_test, size_t q_test)

返回类型:bool

参数:

类型参数名称
const char *name
unsigned intflags
char *in
size_tp
char *out_real
size_tq_real
char *out_test
size_tq_test
19  如果q_real恒等于q_test且非memcmp(out_test, out_real, q_test)则返回:true
22  打印警告信息("Test '%s' failed: flags = %u\n", name, flags)
24  print_hex_dump(warning conditions , "Input: ", DUMP_PREFIX_NONE, 16, 1, in, p, true)
26  print_hex_dump(warning conditions , "Expected: ", DUMP_PREFIX_NONE, 16, 1, out_test, q_test, true)
28  print_hex_dump(warning conditions , "Got: ", DUMP_PREFIX_NONE, 16, 1, out_real, q_real, true)
31  返回:false
调用者
名称描述
test_string_unescape
test_string_escape