Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pcpu_is_populated - determines if the region is populated*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of area*@next_off: return value for the next offset to start searching* For atomic allocations, check if the backing pages are populated

Proto:static bool pcpu_is_populated(struct pcpu_chunk *chunk, int bit_off, int bits, int *next_off)

Type:bool

Parameter:

TypeParameterName
struct pcpu_chunk *chunk
intbit_off
intbits
int *next_off
1046  page_start = PFN_DOWN(bit_off * PCPU_MIN_ALLOC_SIZE)
1047  page_end = PFN_UP((bit_off + bits) * PCPU_MIN_ALLOC_SIZE)
1049  rs = page_start
1050  pcpu_next_unpop( populated bitmap , & rs, & re, page_end)
1051  If rs >= page_end Then Return true
1054  next_off = re * PAGE_SIZE / PCPU_MIN_ALLOC_SIZE
1055  Return false
Caller
NameDescribe
pcpu_find_block_fitpcpu_find_block_fit - finds the block index to start searching*@chunk: chunk of interest*@alloc_bits: size of request in allocation units*@align: alignment of area (max PAGE_SIZE bytes)*@pop_only: use populated regions only* Given a chunk and an