函数逻辑报告 |
Source Code:mm\swapfile.c |
Create Date:2022-07-27 16:48:37 |
Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:No need to decide whether this PTE shares the swap entry with others,* just let do_wp_page work it out if a write is requested later - to* force COW, vm_page_prot omits write permission from any private vma.
函数原型:static int unuse_pte(struct vm_area_struct *vma, pmd_t *pmd, unsigned long addr, swp_entry_t entry, struct page *page)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
pmd_t * | pmd | |
unsigned long | addr | |
swp_entry_t | entry | |
struct page * | page |
1860 | ret等于1 |
1863 | page等于ksm_might_need_to_copy(page, vma, addr) |
1864 | 如果此条件成立可能性小(为编译器优化)(!page)则返回:负ENOMEM |
1867 | 如果mem_cgroup_try_charge(page, The address space we belong to. , GFP_KERNEL, & memcg, false)则 |
1870 | 转到:out_nolock |
1873 | pte等于pte_offset_map_lock(The address space we belong to. , pmd, addr, & ptl) |
1887 | mem_cgroup_commit_charge(page, memcg, true, false) |
1888 | 否则 |
1898 | activate_page(page) |
1899 | out : |
1900 | pte_unmap_unlock(pte, ptl) |
1901 | out_nolock : |
1906 | 返回:ret |
名称 | 描述 |
---|---|
unuse_pte_range |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |