Function report |
Source Code:mm\ksm.c |
Create Date:2022-07-28 15:41:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ksm_madvise
Proto:int ksm_madvise(struct vm_area_struct *vma, unsigned long start, unsigned long end, int advice, unsigned long *vm_flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct vm_area_struct * | vma | |
unsigned long | start | |
unsigned long | end | |
int | advice | |
unsigned long * | vm_flags |
2435 | Case advice == KSM may merge identical pages |
2444 | If vma_is_dax(vma) Then Return 0 |
2457 | err = __ksm_enter(mm) |
2463 | Break |
2465 | Case advice == KSM may not merge identical pages |
2466 | If Not (vm_flags & KSM may merge identical pages ) Then Return 0 |
2469 | If Serialized by page_table_lock Then |
2475 | vm_flags &= ~KSM may merge identical pages |
2476 | Break |
2479 | Return 0 |
Name | Describe |
---|---|
madvise_behavior | We can potentially split a vm area into separate* areas, each area with its own behavior. |
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 |