函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory.c Create Date:2022-07-27 16:06:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__pte_alloc_kernel

函数原型:int __pte_alloc_kernel(pmd_t *pmd)

返回类型:int

参数:

类型参数名称
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  如果非new则返回:负ENOMEM
463  smp_wmb()
465  加自旋锁
466  如果此条件成立可能性大(为编译器优化)(pmd_none( * pmd))则
467  pmd_populate_kernel( & init_mm, pmd, new)
468  new = NULL
470  自旋锁解锁
471  如果newpte_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  返回:0