Function report |
Source Code:mm\huge_memory.c |
Create Date:2022-07-28 16:02:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:spinlock_t *__pmd_trans_huge_lock(pmd_t *pmd, struct vm_area_struct *vma)
Type:spinlock_t
Parameter:
Type | Parameter | Name |
---|---|---|
pmd_t * | pmd | |
struct vm_area_struct * | vma |
2016 | ptl = pmd_lock(The address space we belong to. , pmd) |
2017 | If Value is more likely to compile time(is_swap_pmd( * pmd) || pmd_trans_huge( * pmd) || pmd_devmap( * pmd)) Then Return ptl |
2020 | spin_unlock(ptl) |
2021 | Return NULL |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |