函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void pcpu_block_refresh_hint(struct pcpu_chunk *chunk, int index)

返回类型:void

参数:

类型参数名称
struct pcpu_chunk *chunk
intindex
750  block等于 metadata blocks index
751  alloc_map等于The following are helper functions to help access bitmaps and convert* between bitmap offsets to address offsets.
755  如果scan hint for block
756  start等于lock relative startingposition of the scan hint scan hint for block
757  lock relative startingposition of the contig hint 等于lock relative startingposition of the scan hint
758  contig hint for block 等于scan hint for block
759  scan hint for block 等于0
760  否则
761  start等于lock position of first free
762  contig hint for block 等于0
765  size of free space alongthe right side of the block 等于0
770  pcpu_block_update - updates a block given a free area*@block: block of interest*@start: start offset in block*@end: end offset in block* Updates a block given a known free area. The region [start, end) is
调用者
名称描述
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