Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory.c Create Date:2022-07-28 14:39:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__pte_alloc

Proto:int __pte_alloc(struct mm_struct *mm, pmd_t *pmd)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
pmd_t *pmd
426  new = pte_alloc_one(mm)
427  If Not new Then Return -ENOMEM
443  smp_wmb()
445  ptl = pmd_lock(mm, pmd)
446  If Value is more likely to compile time(pmd_none( * pmd)) Then
447  mm_inc_nr_ptes(mm)
448  pmd_populate(mm, pmd, new)
449  new = NULL
451  spin_unlock(ptl)
452  If new Then 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
454  Return 0
Caller
NameDescribe
__mcopy_atomic