函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_meminit.c Create Date:2022-07-27 07:35:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Calculate the number of uninitialized bytes in the buffer.

函数原型:static int __init count_nonzero_bytes(void *ptr, size_t size)

返回类型:int

参数:

类型参数名称
void *ptr
size_tsize
31  ret等于0
32  p等于ptr
34 i小于size循环如果p[i]则
36  ret自加
37  返回:ret
调用者
名称描述
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