Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pcpu_update_empty_pages - update empty page counters*@chunk: chunk of interest*@nr: nr of empty pages* This is used to keep track of the empty pages now based on the premise* a md_block covers a page. The hint update functions recognize if a block

Proto:static inline void pcpu_update_empty_pages(struct pcpu_chunk *chunk, int nr)

Type:void

Parameter:

TypeParameterName
struct pcpu_chunk *chunk
intnr
573  # of empty populated pages += nr
574  If chunk != Optional reserved chunk. This chunk reserves part of the first* chunk and serves it for reserved allocations. When the reserved* region doesn't exist, the following variable is NULL. Then The number of empty populated pages, protected by pcpu_lock. The* reserved chunk doesn't contribute to the count. += nr
Caller
NameDescribe
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
pcpu_chunk_populatedpcpu_chunk_populated - post-population bookkeeping*@chunk: pcpu_chunk which got populated*@page_start: the start page*@page_end: the end page* Pages in [@page_start,@page_end) have been populated to @chunk. Update* the bookkeeping information accordingly
pcpu_chunk_depopulatedpcpu_chunk_depopulated - post-depopulation bookkeeping*@chunk: pcpu_chunk which got depopulated*@page_start: the start page*@page_end: the end page* Pages in [@page_start,@page_end) have been depopulated from @chunk.