Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kmemleak.c Create Date:2022-07-28 16:21:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Update an object's checksum and return true if it was modified.

Proto:static bool update_checksum(struct kmemleak_object *object)

Type:bool

Parameter:

TypeParameterName
struct kmemleak_object *object
1169  old_csum = checksum for detecting modified objects
1171  kasan_disable_current()
1172  checksum for detecting modified objects = crc32(0, (void * )pointer, size)
1173  kasan_enable_current()
1175  Return checksum for detecting modified objects != old_csum
Caller
NameDescribe
kmemleak_scanScan data sections and all the referenced memory blocks allocated via the* kernel's standard allocators. This function must be called with the* scan_mutex held.