Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lookup_swap_cgroup_id - lookup mem_cgroup id tied to swap entry*@ent: swap entry to be looked up.* Returns ID of mem_cgroup at success. 0 at failure. (0 is invalid ID)

Proto:unsigned short lookup_swap_cgroup_id(swp_entry_t ent)

Type:unsigned short

Parameter:

TypeParameterName
swp_entry_tent
164  Return id
Caller
NameDescribe
mem_cgroup_try_chargemem_cgroup_try_charge - try charging a page*@page: page to charge*@mm: mm context of the victim*@gfp_mask: reclaim mode*@memcgp: charged memcg return*@compound: charge the page as compound or small page* Try to charge @page to the memcg that @mm belongs