函数逻辑报告 |
Source Code:mm\hmm.c |
Create Date:2022-07-27 18:12:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:hmm_vma_handle_pte
函数原型:static int hmm_vma_handle_pte(struct mm_walk *walk, unsigned long addr, unsigned long end, pmd_t *pmdp, pte_t *ptep, uint64_t *pfn)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mm_walk * | walk | |
unsigned long | addr | |
unsigned long | end | |
pmd_t * | pmdp | |
pte_t * | ptep | |
uint64_t * | pfn |
268 | hmm_vma_walk等于private |
276 | fault = write_fault = false |
279 | hmm_pte_need_fault(hmm_vma_walk, orig_pfn, 0, & fault, & write_fault) |
281 | 如果fault或write_fault则转到:fault |
283 | 返回:0 |
286 | 如果非pte_present(pte)则 |
287 | entry等于Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. |
289 | 如果非non_swap_entry(entry)则 |
290 | cpu_flags等于pte_to_hmm_pfn_flags(range, pte) |
291 | hmm_pte_need_fault(hmm_vma_walk, orig_pfn, cpu_flags, & fault, & write_fault) |
293 | 如果fault或write_fault则转到:fault |
295 | 返回:0 |
302 | 如果is_device_private_entry(entry)则 |
303 | cpu_flags等于flags[ pfn is valid. It has, at least, read permission.]按位或flags[ private device memory (ZONE_DEVICE)] |
305 | cpu_flags或等于如果is_write_device_private_entry(entry)则flags[ CPU page table has write permission set]否则0 |
307 | hmm_pte_need_fault(hmm_vma_walk, orig_pfn, cpu_flags, & fault, & write_fault) |
309 | 如果fault或write_fault则转到:fault |
314 | 返回:0 |
317 | 如果is_migration_entry(entry)则 |
318 | 如果fault或write_fault则 |
324 | 返回:0 |
329 | 返回:负EFAULT |
330 | 否则 |
331 | cpu_flags等于pte_to_hmm_pfn_flags(range, pte) |
332 | hmm_pte_need_fault(hmm_vma_walk, orig_pfn, cpu_flags, & fault, & write_fault) |
336 | 如果fault或write_fault则转到:fault |
339 | 如果pte_devmap(pte)则 |
340 | pgmap等于get_dev_pagemap(pte_pfn(pte), pgmap) |
342 | 如果此条件成立可能性小(为编译器优化)(!pgmap)则返回:负EBUSY |
345 | 如果非is_zero_pfn(pte_pfn(pte))则 |
347 | 返回:负EFAULT |
356 | 返回:0 |
358 | fault : |
359 | 如果pgmap则 |
360 | put_dev_pagemap(pgmap) |
361 | pgmap = NULL |
名称 | 描述 |
---|---|
hmm_vma_walk_pmd |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |