Function report |
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 activity | Download SCCT | Chinese |
Name: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.
Proto:unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id, unsigned int nr_ents)
Type:unsigned short
Parameter:
Type | Parameter | Name |
---|---|---|
swp_entry_t | ent | |
unsigned short | id | |
unsigned int | nr_ents |
133 | offset = Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format |
136 | sc = lookup_swap_cgroup(ent, & ctrl) |
138 | spin_lock_irqsave( & lock, flags) |
140 | cycle |
151 | spin_unlock_irqrestore( & lock, flags) |
153 | Return old |
Name | Describe |
---|---|
mem_cgroup_try_charge_swap | mem_cgroup_try_charge_swap - try charging swap space for a page*@page: page being added to swap*@entry: swap entry to charge* Try to charge @page's memcg for the swap space at @entry.* Returns 0 on success, -ENOMEM on failure. |
mem_cgroup_uncharge_swap | mem_cgroup_uncharge_swap - uncharge swap space*@entry: swap entry to uncharge*@nr_pages: the amount of swap space to uncharge |
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 |