Function report |
Source Code:mm\swap_cgroup.c |
Create Date:2022-07-28 16:15:45 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lookup_swap_cgroup
Proto:static struct swap_cgroup *lookup_swap_cgroup(swp_entry_t ent, struct swap_cgroup_ctrl **ctrlp)
Type:struct swap_cgroup
Parameter:
Type | Parameter | Name |
---|---|---|
swp_entry_t | ent | |
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] |
85 | Return __lookup_swap_cgroup(ctrl, offset) |
Name | Describe |
---|---|
swap_cgroup_cmpxchg | swap_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_record | swap_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_id | 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) |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |