函数逻辑报告 |
Source Code:mm\huge_memory.c |
Create Date:2022-07-27 17:35:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:insert_pfn_pmd
函数原型:static void insert_pfn_pmd(struct vm_area_struct *vma, unsigned long addr, pmd_t *pmd, pfn_t pfn, pgprot_t prot, bool write, pgtable_t pgtable)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
unsigned long | addr | |
pmd_t * | pmd | |
pfn_t | pfn | |
pgprot_t | prot | |
bool | write | |
pgtable_t | pgtable |
779 | 如果write则 |
780 | 如果pmd_pfn( * pmd)不等于pfn_t_to_pfn(pfn)则 |
781 | WARN_ON_ONCE(!is_huge_zero_pmd( * pmd)) |
782 | 转到:out_unlock |
784 | entry等于pmd_mkyoung( * pmd) |
785 | entry等于maybe_pmd_mkwrite(pmd_mkdirty(entry), vma) |
786 | 如果pmdp_set_access_flags(vma, addr, pmd, entry, 1)则update_mmu_cache_pmd(vma, addr, pmd) |
790 | 转到:out_unlock |
793 | entry等于pmd_mkhuge(pfn_t_pmd(pfn, prot)) |
794 | 如果pfn_t_devmap(pfn)则entry等于pmd_mkdevmap(entry) |
796 | 如果write则 |
797 | entry等于pmd_mkyoung(pmd_mkdirty(entry)) |
798 | entry等于maybe_pmd_mkwrite(entry, vma) |
801 | 如果pgtable则 |
807 | set_pmd_at(mm, addr, pmd, entry) |
808 | update_mmu_cache_pmd(vma, addr, pmd) |
810 | out_unlock : |
811 | 自旋锁解锁 |
812 | 如果pgtable则pte_free - free PTE-level user page table page*@mm: the mm_struct of the current context*@pte_page: the `struct page` representing the page table |
名称 | 描述 |
---|---|
vmf_insert_pfn_pmd |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |