Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swap_cgroup.c Create Date:2022-07-28 16:15:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__lookup_swap_cgroup

Proto:static struct swap_cgroup *__lookup_swap_cgroup(struct swap_cgroup_ctrl *ctrl, unsigned long offset)

Type:struct swap_cgroup

Parameter:

TypeParameterName
struct swap_cgroup_ctrl *ctrl
unsigned longoffset
71  mappage = map[offset / SC_PER_PAGE]
72  sc = page_address(mappage)
73  Return sc + offset % SC_PER_PAGE
Caller
NameDescribe
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.