函数逻辑报告 |
Source Code:mm\khugepaged.c |
Create Date:2022-07-27 17:40:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Bring missing pages in from swap, to complete THP collapse.* Only done if khugepaged_scan_pmd believes it is worthwhile.* Called and returns without pte mapped or spinlocks held,* but with mmap_sem held to protect against vma changes.
函数原型:static bool __collapse_huge_page_swapin(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long address, pmd_t *pmd, int referenced)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mm_struct * | mm | |
struct vm_area_struct * | vma | |
unsigned long | address | |
pmd_t * | pmd | |
int | referenced |
895 | swapped_in等于0 |
896 | ret等于0 |
906 | 如果referenced小于HPAGE_PMD_NR除2则 |
908 | 返回:false |
910 | Pointer to pte entry matching* the 'address'. NULL if the page* table hasn't been allocated.等于pte_offset_map(pmd, address) |
913 | Value of PTE at the time of fault 等于Pointer to pte entry matching* the 'address'. NULL if the page* table hasn't been allocated. |
914 | 如果非heck whether a pte points to a swap entry 则继续下一循环 |
916 | swapped_in自加 |
920 | 如果ret按位与VM_FAULT_RETRY则 |
933 | 如果ret按位与VM_FAULT_ERROR则 |
935 | 返回:false |
941 | pte_unmap(Pointer to pte entry matching* the 'address'. NULL if the page* table hasn't been allocated.) |
943 | 返回:true |
名称 | 描述 |
---|---|
collapse_huge_page |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |