函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swap_cgroup.c Create Date:2022-07-27 17:50:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__lookup_swap_cgroup

函数原型:static struct swap_cgroup *__lookup_swap_cgroup(struct swap_cgroup_ctrl *ctrl, unsigned long offset)

返回类型:struct swap_cgroup

参数:

类型参数名称
struct swap_cgroup_ctrl *ctrl
unsigned longoffset
71  mappage等于map[offset / SC_PER_PAGE]
72  sc等于page_address(mappage)
73  返回:scoffset取模SC_PER_PAGE
调用者
名称描述
lookup_swap_cgroup
swap_cgroup_recordswap_cgroup_record - record mem_cgroup for a set of swap entries*@ent: the first swap entry to be recorded into*@id: mem_cgroup to be recorded*@nr_ents: number of swap entries to be recorded* Returns old value at success, 0 at failure.