Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pcpu_next_md_free_region - finds the next hint free area*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of free area* Helper function for pcpu_for_each_md_free_region

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

Type:void

Parameter:

TypeParameterName
struct pcpu_chunk *chunk
int *bit_off
int *bits
367  i = pcpu_off_to_block_index( * bit_off)
368  block_off = pcpu_off_to_block_off( * bit_off)
371  bits = 0
372  When i < pcpu_chunk_nr_blocks - converts nr_pages to # of md_blocks*@chunk: chunk of interest* This conversion is from the number of physical pages that the chunk* serves to the number of bitmap blocks used. cycle
375  If bits Then
379  Return
390  bits = contig hint for block
395  Return
398  block_off = 0
400  bits = size of free space alongthe right side of the block
401  bit_off = (i + 1) * PCPU_BITMAP_BLOCK_BITS - size of free space alongthe right side of the block