Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Calculate the number of uninitialized bytes in the buffer.

Proto:static int __init count_nonzero_bytes(void *ptr, size_t size)

Type:int

Parameter:

TypeParameterName
void *ptr
size_tsize
31  ret = 0
32  p = ptr
34  When i < size cycle If p[i] Then
36  ret++
37  Return ret
Caller
NameDescribe
do_alloc_pages_order
do_kmalloc_sizeTest kmalloc() with given parameters.
do_vmalloc_sizeTest vmalloc() with given parameters.
check_bufCheck the invariants for the buffer allocated from a slab cache.* If the cache has a test constructor, the first 4 bytes of the object must* always remain equal to CTOR_PATTERN.* If the cache isn't an RCU-typesafe one, or if the allocation is done with
do_kmem_cache_size_bulk