函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static void pcpu_block_update(struct pcpu_block_md *block, int start, int end)

返回类型:void

参数:

类型参数名称
struct pcpu_block_md *block
intstart
intend
605  contig等于endstart
607  lock position of first free 等于两数取小(lock position of first free , start)
608  如果start恒等于0则size of free space alongthe left side of the block 等于contig
611  如果end恒等于al bits responsible for size of free space alongthe right side of the block 等于contig
614  如果contig大于contig hint for block
627  scan hint for block 等于0
629  否则
630  scan hint for block 等于0
632  lock relative startingposition of the contig hint 等于start
633  contig hint for block 等于contig
634  否则如果contig恒等于contig hint for block
653  否则
调用者
名称描述
pcpu_block_update_scanpcpu_block_update_scan - update a block given a free area from a scan*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of free area* Finding the final allocation spot first goes through pcpu_find_block_fit()* to find a block that can hold the
pcpu_chunk_refresh_hintpcpu_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
pcpu_block_refresh_hintpcpu_block_refresh_hint*@chunk: chunk of interest*@index: index of the metadata block* Scans over the block beginning at first_free and updates the block* metadata accordingly.
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