Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__pte_alloc_kernel

Proto:int __pte_alloc_kernel(pmd_t *pmd)

Type:int

Parameter:

TypeParameterName
pmd_t *pmd
459  new = pte_alloc_one_kernel - allocate a page for PTE-level kernel page table*@mm: the mm_struct of the current context* Return: pointer to the allocated memory or %NULL on error
460  If Not new Then Return -ENOMEM
463  smp_wmb()
465  spin_lock( & Protects page tables and some * counters)
466  If Value is more likely to compile time(pmd_none( * pmd)) Then
467  pmd_populate_kernel( & init_mm, pmd, new)
468  new = NULL
470  spin_unlock( & Protects page tables and some * counters)
471  If new Then pte_free_kernel - free PTE-level kernel page table page*@mm: the mm_struct of the current context*@pte: pointer to the memory containing the page table
473  Return 0