函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:内存泄漏检测机制的初始化

函数原型:void __init kmemleak_init(void)

返回类型:void

参数:

1935  如果set if a fatal kmemleak error has occurred 则返回
1938  used to avoid reporting of recently allocated objects 等于msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than
1939  delay between automatic memory scannings 等于msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than
1941  allocation caches for kmemleak internal data 等于Please use this macro to create slab caches. Simply specify the* name of the structure and maybe some flags that are listed above.* The alignment of the struct determines object alignment. If you* f(kmemleak_object, Avoid kmemleak tracing )
1942  scan_area_cache等于Please use this macro to create slab caches. Simply specify the* name of the structure and maybe some flags that are listed above.* The alignment of the struct determines object alignment. If you* f(kmemleak_scan_area - limit the range to be scanned in an allocated object*@ptr: pointer to beginning or inside the object, Avoid kmemleak tracing )
1945  Create the metadata (struct kmemleak_object) corresponding to an allocated* memory block and add it to the object_list and object_tree_root.
1947  Create the metadata (struct kmemleak_object) corresponding to an allocated* memory block and add it to the object_list and object_tree_root.
1950  如果__start_ro_after_init小于_sdata__end_ro_after_init大于_edataCreate the metadata (struct kmemleak_object) corresponding to an allocated* memory block and add it to the object_list and object_tree_root.
调用者
名称描述
mm_init设置内核内存分配器