Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:memset32_selftest

Proto:static __init int memset32_selftest(void)

Type:int

Parameter:Nothing

48  p = kmalloc(256 * 2 * 4, GFP_KERNEL)
49  If Not p Then Return -1
52  When i < 256 cycle
53  When j < 256 cycle
54  memset(p, 0xa1, 256 * 2 * size of v )
55  memset32(p + i, 0xb1b2b3b4, j)
56  When k < 512 cycle
57  v = p[k]
58  If k < i Then
59  If v != 0xa1a1a1a1 Then Go to fail
61  Else if k < i + j Then
62  If v != 0xb1b2b3b4 Then Go to fail
64  Else
65  If v != 0xa1a1a1a1 Then Go to fail
72  fail :
73  kfree(p)
74  If i < 256 Then Return i << 24 | j << 16 | k | 0x8000
76  Return 0
Caller
NameDescribe
string_selftest_init