Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu.c Create Date:2022-07-28 14:25:58
Last Modify:2022-05-23 13:52:24 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static void pcpu_block_update(struct pcpu_block_md *block, int start, int end)

Type:void

Parameter:

TypeParameterName
struct pcpu_block_md *block
intstart
intend
605  contig = end - start
607  lock position of first free = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(lock position of first free , start)
608  If start == 0 Then size of free space alongthe left side of the block = contig
611  If end == al bits responsible for Then size of free space alongthe right side of the block = contig
614  If contig > contig hint for block Then
629  Else
632  lock relative startingposition of the contig hint = start
633  contig hint for block = contig
634  Else if contig == contig hint for block Then
653  Else
Caller
NameDescribe
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