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:memset64_selftest

Proto:static __init int memset64_selftest(void)

Type:int

Parameter:Nothing

84  p = kmalloc(256 * 2 * 8, GFP_KERNEL)
85  If Not p Then Return -1
88  When i < 256 cycle
89  When j < 256 cycle
90  memset(p, 0xa1, 256 * 2 * size of v )
92  When k < 512 cycle
93  v = p[k]
94  If k < i Then
95  If v != 0xa1a1a1a1a1a1a1a1ULL Then Go to fail
97  Else if k < i + j Then
98  If v != 0xb1b2b3b4b5b6b7b8ULL Then Go to fail
100  Else
101  If v != 0xa1a1a1a1a1a1a1a1ULL Then Go to fail
108  fail :
109  kfree(p)
110  If i < 256 Then Return i << 24 | j << 16 | k | 0x8000
112  Return 0
Caller
NameDescribe
string_selftest_init