函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__pcpu_chunk_move

函数原型:static void __pcpu_chunk_move(struct pcpu_chunk *chunk, int slot, bool move_front)

返回类型:void

参数:

类型参数名称
struct pcpu_chunk *chunk
intslot
boolmove_front
528  如果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.
529  如果move_front链表项移动到头部
531  否则链表项移动到尾部
调用者
名称描述
pcpu_chunk_move
pcpu_chunk_relocatepcpu_chunk_relocate - put chunk in the appropriate chunk slot*@chunk: chunk of interest*@oslot: the previous slot it was on* This function is called after an allocation or free changed @chunk