Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kasan\generic.c Create Date:2022-07-28 15:53:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:memory_is_nonzero

Proto:static __always_inline unsigned long memory_is_nonzero(const void *start, const void *end)

Type:unsigned long

Parameter:

TypeParameterName
const void *start
const void *end
106  prefix = start % 8
108  If end - start <= 16 Then Return bytes_is_nonzero(start, end - start)
111  If prefix Then
112  prefix = 8 - prefix
113  ret = bytes_is_nonzero(start, prefix)
114  If Value for the false possibility is greater at compile time(ret) Then Return ret
116  start += prefix
119  words = (end - start) / 8
120  When words cycle
121  If Value for the false possibility is greater at compile time( * (u64 * )start) Then Return bytes_is_nonzero(start, 8)
123  start += 8
124  words--
127  Return bytes_is_nonzero(start, (end - start) % 8)
Caller
NameDescribe
memory_is_poisoned_n