函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fill_pool

函数原型:static void fill_pool(void)

返回类型:void

参数:

131  gfp等于DOC: Useful GFP flag combinations* Useful GFP flag combinations* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~* Useful GFP flag combinations that are commonly used. It is recommended* that subsystems start with one of these combinations and then set/clear按位或__GFP_NORETRY按位或DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.
135  如果此条件成立可能性大(为编译器优化)(READ_ONCE(obj_pool_free) >= debug_objects_pool_min_level)则返回
146 READ_ONCE(The number of objs on the global free list )且READ_ONCE(obj_pool_free)小于Because of the presence of percpu free pools, obj_pool_free will* under-count those in the percpu free pools. Similarly, obj_pool_used* will over-count those in the percpu free pools. Adjustments will be* made at debug_stats_show()循环
147  raw_spin_lock_irqsave( & pool_lock, flags)
153  obj等于hlist_entry(first, typeof( * obj), node)
154  hlist_del( & node)
159  raw_spin_unlock_irqrestore( & pool_lock, flags)
162  如果此条件成立可能性小(为编译器优化)(!obj_cache)则返回
165 READ_ONCE(obj_pool_free)小于debug_objects_pool_min_level循环
170  new[cnt]等于Shortcuts
171  如果非new[cnt]则退出
174  如果非cnt则返回
177  raw_spin_lock_irqsave( & pool_lock, flags)
178 cnt循环
183  raw_spin_unlock_irqrestore( & pool_lock, flags)
调用者
名称描述
__debug_object_init