Function report |
Source Code:mm\memory.c |
Create Date:2022-07-28 14:40:58 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This is the old fallback for page remapping.* For historical reasons, it only allows reserved pages. Only* old drivers should use this, and they needed to mark their* pages reserved for the old functions anyway.
Proto:static int insert_page(struct vm_area_struct *vma, unsigned long addr, struct page *page, pgprot_t prot)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct vm_area_struct * | vma | |
unsigned long | addr | |
struct page * | page | |
pgprot_t | prot |
1452 | flush_dcache_page(page) |
1453 | pte = get_locked_pte(mm, addr, & ptl) |
1457 | If Not pte_none( * pte) Then Go to out_unlock |
1466 | retval = 0 |
1467 | out_unlock : |
1468 | pte_unmap_unlock(pte, ptl) |
1469 | out : |
1470 | Return retval |
Name | Describe |
---|---|
vm_insert_page | vm_insert_page - insert single page into user vma*@vma: user vma to map to*@addr: target user address of this page*@page: source kernel page* This allows drivers to insert individual pages they've allocated* into a user vma. |
__vm_insert_mixed |
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 |