函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lookup_swap_cgroup

函数原型:static struct swap_cgroup *lookup_swap_cgroup(swp_entry_t ent, struct swap_cgroup_ctrl **ctrlp)

返回类型:struct swap_cgroup

参数:

类型参数名称
swp_entry_tent
struct swap_cgroup_ctrl **ctrlp
79  offset等于Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format
82  ctrl等于swap_cgroup_ctrl[Extract the `type' field from a swp_entry_t. The swp_entry_t is in* arch-independent format]
83  如果ctrlpctrlp等于ctrl
85  返回:__lookup_swap_cgroup(ctrl, offset)
调用者
名称描述
swap_cgroup_cmpxchgswap_cgroup_cmpxchg - cmpxchg mem_cgroup's id for this swp_entry.*@ent: swap entry to be cmpxchged*@old: old id*@new: new id* Returns old id at success, 0 at failure.* (There is no mem_cgroup using 0 as its id)
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.
lookup_swap_cgroup_idlookup_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)