Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The following are helper functions to help access bitmaps and convert* between bitmap offsets to address offsets.

Proto:static unsigned long *pcpu_index_alloc_map(struct pcpu_chunk *chunk, int index)

Type:unsigned long

Parameter:

TypeParameterName
struct pcpu_chunk *chunk
intindex
306  Return allocation map + index * PCPU_BITMAP_BLOCK_BITS / BITS_PER_LONG
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_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_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