函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu.c Create Date:2022-07-27 15:50:27
Last Modify:2022-05-23 13:52:24 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pcpu_chunk_refresh_hint - updates metadata about a chunk*@chunk: chunk of interest*@full_scan: if we should scan from the beginning* Iterates over the metadata blocks to find the largest contig area

函数原型:static void pcpu_chunk_refresh_hint(struct pcpu_chunk *chunk, bool full_scan)

返回类型:void

参数:

类型参数名称
struct pcpu_chunk *chunk
boolfull_scan
720  chunk_md等于chunk_md
724  如果非full_scanscan hint for block
725  bit_off等于lock relative startingposition of the scan hint scan hint for block
726  lock relative startingposition of the contig hint 等于lock relative startingposition of the scan hint
727  contig hint for block 等于scan hint for block
728  scan hint for block 等于0
729  否则
730  bit_off等于lock position of first free
731  contig hint for block 等于0
734  bits等于0
736  pcpu_block_update - updates a block given a free area*@block: block of interest*@start: start offset in block*@end: end offset in block* Updates a block given a known free area. The region [start, end) is
调用者
名称描述
pcpu_block_update_hint_allocpcpu_block_update_hint_alloc - update hint on allocation path*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of request* Updates metadata for the allocation path. The metadata only has to be
pcpu_block_update_hint_freepcpu_block_update_hint_free - updates the block hints on the free path*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of request* Updates metadata for the allocation path. This avoids a blind block