函数逻辑报告 |
Source Code:mm\memory.c |
Create Date:2022-07-27 16:06:34 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__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 |
| 463 | smp_wmb() |
| 465 | 加自旋锁 |
| 466 | 如果此条件成立可能性大(为编译器优化)(pmd_none( * pmd))则 |
| 467 | pmd_populate_kernel( & init_mm, pmd, new) |
| 468 | new = NULL |
| 470 | 自旋锁解锁 |
| 471 | 如果new则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 | 返回:0 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |