Function report |
Source Code:mm\swap_cgroup.c |
Create Date:2022-07-28 16:15:47 |
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_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)
Proto:unsigned short swap_cgroup_cmpxchg(swp_entry_t ent, unsigned short old, unsigned short new)
Type:unsigned short
Parameter:
Type | Parameter | Name |
---|---|---|
swp_entry_t | ent | |
unsigned short | old | |
unsigned short | new |
105 | sc = lookup_swap_cgroup(ent, & ctrl) |
107 | spin_lock_irqsave( & lock, flags) |
111 | Else retval = 0 |
113 | spin_unlock_irqrestore( & lock, flags) |
114 | Return retval |
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 |