函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:test_string_unescape

函数原型:static void __init test_string_unescape(const char *name, unsigned int flags, bool inplace)

返回类型:void

参数:

类型参数名称
const char *name
unsigned intflags
boolinplace
66  q_real等于256
67  in等于kmalloc(q_real, GFP_KERNEL)
68  out_test等于kmalloc(q_real, GFP_KERNEL)
69  out_real等于kmalloc(q_real, GFP_KERNEL)
70  p等于0, q_test等于0
72  如果非in或非out_test或非out_real则转到:out
75 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(strings)循环
76  s等于in
77  len等于strlen(in)
80  内存复制( & in[p], s, len)
81  p加等于len
84  如果flags按位与flags
85  s等于out
86  len等于strlen(out)
88  内存复制( & out_test[q_test], s, len)
89  q_test加等于len
91  in[p++]等于'\0'
94  如果inplace
95  内存复制(out_real, in, p)
96  如果flags恒等于UNESCAPE_ANYq_real等于string_unescape_any_inplace(out_real)
98  否则q_real等于string_unescape_inplace(out_real, flags)
100  否则如果flags恒等于UNESCAPE_ANY
101  q_real等于string_unescape_any(in, out_real, q_real)
102  否则
103  q_real等于string_unescape - unquote characters in the given string*@src: source buffer (escaped)*@dst: destination buffer (unescaped)*@size: size of the destination buffer (0 to unlimit)*@flags: combination of the flags.* Description:
106  test_string_check_buf(name, flags, in, p - 1, out_real, q_real, out_test, q_test)
108  out :
109  kfree(out_real)
110  kfree(out_test)
111  kfree(in)
调用者
名称描述
test_string_helpers_init