Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test-string_helpers.c Create Date:2022-07-28 06:26:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:test_string_unescape

Proto:static void __init test_string_unescape(const char *name, unsigned int flags, bool inplace)

Type:void

Parameter:

TypeParameterName
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  If Not in || Not out_test || Not out_real Then Go to out
75  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(strings) cycle
76  s = in
77  len = strlen(in)
80  No 3D Now!( & in[p], s, len)
81  p += len
84  If flags & flags Then
85  s = out
86  len = strlen(out)
88  No 3D Now!( & out_test[q_test], s, len)
89  q_test += len
91  in[p++] = '\0'
94  If inplace Then
95  No 3D Now!(out_real, in, p)
96  If flags == UNESCAPE_ANY Then q_real = string_unescape_any_inplace(out_real)
98  Else q_real = string_unescape_inplace(out_real, flags)
100  Else if flags == UNESCAPE_ANY Then
101  q_real = string_unescape_any(in, out_real, q_real)
102  Else
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)
Caller
NameDescribe
test_string_helpers_init