函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:unsigned short lookup_swap_cgroup_id(swp_entry_t ent)

返回类型:unsigned short

参数:

类型参数名称
swp_entry_tent
164  返回:id
调用者
名称描述
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