Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:int vm_insert_page(struct vm_area_struct *vma, unsigned long addr, struct page *page)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longaddr
struct page *page
1505  If addr < Our start address within vm_mm. || addr >= The first byte after our end addresswithin vm_mm. Then Return -EFAULT
1507  If Not page_count(page) Then Return -EINVAL
1509  If Not (Flags, see mm.h. & Can contain "struct page" and pure PFN pages ) Then
1510  BUG_ON(rylock for reading -- returns 1 if successful, 0 if contention)
1511  BUG_ON(Flags, see mm.h. & Page-ranges managed without "struct page", just pure PFN )
1512  Flags, see mm.h. |= Can contain "struct page" and pure PFN pages
1514  Return 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.
Caller
NameDescribe
__vm_map_pages__vm_map_pages - maps range of kernel pages into user vma*@vma: user vma to map to*@pages: pointer to array of source kernel pages*@num: number of pages in page array*@offset: user's requested vm_pgoff
remap_vmalloc_range_partialmap_vmalloc_range_partial - map vmalloc pages to userspace*@vma: vma to cover*@uaddr: target user address to start at*@kaddr: virtual address of vmalloc kernel memory*@size: size of map area* Returns: 0 for success, -Exxx on failure* This function checks
vmf_insert_page
kcov_mmap