Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fill_pool

Proto:static void fill_pool(void)

Type:void

Parameter:Nothing

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  If Value is more likely to compile time(READ_ONCE(obj_pool_free) >= debug_objects_pool_min_level) Then Return
146  When 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() cycle
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  If Value for the false possibility is greater at compile time(!obj_cache) Then Return
165  When READ_ONCE(obj_pool_free) < debug_objects_pool_min_level cycle
169  When cnt < ODEBUG_BATCH_SIZE cycle
170  new[cnt] = Shortcuts
171  If Not new[cnt] Then Break
174  If Not cnt Then Return
177  raw_spin_lock_irqsave( & pool_lock, flags)
178  When cnt cycle
183  raw_spin_unlock_irqrestore( & pool_lock, flags)
Caller
NameDescribe
__debug_object_init