函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu.c Create Date:2022-07-27 15:50:10
Last Modify:2022-05-23 13:52:24 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static void pcpu_next_md_free_region(struct pcpu_chunk *chunk, int *bit_off, int *bits)

返回类型:void

参数:

类型参数名称
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 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.循环
375  如果bits
379  返回
390  bits等于contig hint for block
395  返回
398  block_off等于0
400  bits等于size of free space alongthe right side of the block
401  bit_off等于i加1的和乘PCPU_BITMAP_BLOCK_BITSsize of free space alongthe right side of the block