Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:find_mergeable_vma

Proto:static struct vm_area_struct *find_mergeable_vma(struct mm_struct *mm, unsigned long addr)

Type:struct vm_area_struct

Parameter:

TypeParameterName
struct mm_struct *mm
unsigned longaddr
523  If ksmd, and unmerge_and_remove_all_rmap_items(), must not touch an mm's* page tables after it has passed through ksm_exit() - which, if necessary,* takes mmap_sem briefly to serialize against them. ksm_exit() does not set Then Return NULL
525  vma = Look up the first VMA which satisfies addr < vm_end, NULL if none.
526  If Not vma || Our start address within vm_mm. > addr Then Return NULL
528  If Not (Flags, see mm.h. & KSM may merge identical pages ) || Not Serialized by page_table_lock Then Return NULL
530  Return vma
Caller
NameDescribe
break_cow
get_mergeable_page
try_to_merge_with_ksm_pagery_to_merge_with_ksm_page - like try_to_merge_two_pages,* but no new kernel page is allocated: kpage must already be a ksm page.* This function returns 0 if the pages were merged, -EFAULT otherwise.
cmp_and_merge_pagemp_and_merge_page - first see if page can be merged into the stable tree;* if not, compare checksum to previous and if it's the same, see if page can* be inserted into the unstable tree, or merged with a page already there and