函数逻辑报告 |
Source Code:mm\huge_memory.c |
Create Date:2022-07-27 17:36:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Returns page table lock pointer if a given pmd maps a thp, NULL otherwise.* Note that if it returns page table lock pointer, this routine returns without* unlocking page table lock. So callers must unlock it.
函数原型:spinlock_t *__pmd_trans_huge_lock(pmd_t *pmd, struct vm_area_struct *vma)
返回类型:spinlock_t
参数:
类型 | 参数 | 名称 |
---|---|---|
pmd_t * | pmd | |
struct vm_area_struct * | vma |
2016 | ptl等于pmd_lock(The address space we belong to. , pmd) |
2017 | 如果此条件成立可能性大(为编译器优化)(is_swap_pmd( * pmd) || pmd_trans_huge( * pmd) || pmd_devmap( * pmd))则返回:ptl |
2020 | 自旋锁解锁 |
2021 | 返回:NULL |
名称 | 描述 |
---|---|
zap_huge_pmd | |
move_huge_pmd | |
change_huge_pmd | Returns* - 0 if PMD could not be locked* - 1 if PMD was locked but protections unchange and TLB flush unnecessary* - HPAGE_PMD_NR is protections changed and TLB flush necessary |
pmd_trans_huge_lock | mmap_sem must be held on entry |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |