| Function report | 
| Source Code: mm\memcontrol.c | Create Date:2022-07-28 16:10:19 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:lock_page_memcg - lock a page->mem_cgroup binding*@page: the page* This function protects unlocked LRU pages from being moved to* another cgroup
Proto:struct mem_cgroup *lock_page_memcg(struct page *page)
Type:struct mem_cgroup
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page * | page | 
| 1976 | If mem_cgroup_disabled() Then Return NULL | 
| 1978 | again : | 
| 1979 | memcg = mem_cgroup | 
| 1980 | If Value for the false possibility is greater at compile time(!memcg) Then Return NULL | 
| 1983 | If atomic_read( & * set > 0 if pages under this cgroup are moving to other cgroup.) <= 0 Then Return memcg | 
| 1987 | If memcg != mem_cgroup Then | 
| 1989 | Go to again | 
| 1997 | move_lock_task = current process | 
| 1998 | move_lock_flags = flags | 
| 2000 | Return memcg | 
| Name | Describe | 
|---|---|
| __cancel_dirty_page | This cancels just the dirty bit on the kernel page itself, it does NOT* actually remove dirty bits on any mmap's that may be around | 
| test_clear_page_writeback | |
| __test_set_page_writeback | |
| page_add_file_rmap | page_add_file_rmap - add pte mapping to a file page*@page: the page to add the mapping to*@compound: charge the page as compound or small page* The caller needs to hold the pte lock. | 
| page_remove_file_rmap | |
| mark_buffer_dirty | mark_buffer_dirty - mark a buffer_head as needing writeout*@bh: the buffer_head to mark dirty* mark_buffer_dirty() will set the dirty bit against the buffer, then set* its backing page dirty, then tag the page as dirty in the page cache* and then attach | 
| iomap_set_page_dirty | 
| 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 |