函数逻辑报告 |
Source Code:mm\hugetlb.c |
Create Date:2022-07-27 17:00:24 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:This is called when the original mapper is failing to COW a MAP_PRIVATE* mappping it owns the reserve page for. The intention is to unmap the page* from other VMAs and let the children be SIGKILLed if they are faulting the* same region.
函数原型:static void unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma, struct page *page, unsigned long address)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct mm_struct * | mm | |
| struct vm_area_struct * | vma | |
| struct page * | page | |
| unsigned long | address |
| 3555 | h等于hstate_vma(vma) |
| 3564 | address等于address按位与huge_page_mask(h) |
| 3565 | pgoff等于address减Our start address within vm_mm. 右移PAGE_SHIFT determines the page size 位的值加Offset (within vm_file) in PAGE_SIZEunits |
| 3574 | i_mmap_lock_write(mapping) |
| 3585 | 如果Flags, see mm.h. 按位与VM_MAYSHARE则继续下一循环 |
| 3599 | i_mmap_unlock_write(mapping) |
| 名称 | 描述 |
|---|---|
| hugetlb_cow | Hugetlb_cow() should be called with page lock of the original hugepage held.* Called with hugetlb_instantiation_mutex held and pte_page locked so we* cannot race with other handlers or page migration. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |