Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void pcpu_block_update_scan(struct pcpu_chunk *chunk, int bit_off, int bits)

Type:void

Parameter:

TypeParameterName
struct pcpu_chunk *chunk
intbit_off
intbits
688  s_off = pcpu_off_to_block_off(bit_off)
689  e_off = s_off + bits
693  If e_off > PCPU_BITMAP_BLOCK_BITS Then Return
696  s_index = pcpu_off_to_block_index(bit_off)
697  block = metadata blocks + s_index
700  l_bit = find_last_bit(The following are helper functions to help access bitmaps and convert* between bitmap offsets to address offsets., s_off)
701  s_off = If s_off == l_bit Then 0 Else l_bit + 1
703  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
Caller
NameDescribe
pcpu_alloc_areapcpu_alloc_area - allocates an area from a pcpu_chunk*@chunk: chunk of interest*@alloc_bits: size of request in allocation units*@align: alignment of area (max PAGE_SIZE)*@start: bit_off to start searching* This function takes in a @start offset to begin