Function report |
Source Code:mm\kasan\common.c |
Create Date:2022-07-28 15:51:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kasan_mem_notifier
Proto:static int __meminit kasan_mem_notifier(struct notifier_block *nb, unsigned long action, void *data)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct notifier_block * | nb | |
unsigned long | action | |
void * | data |
686 | start_kaddr = pfn_to_kaddr(start_pfn) |
687 | shadow_start = kasan_mem_to_shadow((void * )start_kaddr) |
689 | shadow_end = shadow_start + shadow_size |
691 | If WARN_ON(nr_pages % KASAN_SHADOW_SCALE_SIZE) || WARN_ON(start_kaddr % (KASAN_SHADOW_SCALE_SIZE << PAGE_SHIFT determines the page size )) Then Return NOTIFY_BAD |
696 | Case action == MEM_GOING_ONLINE |
704 | If shadow_mapped(shadow_start) Then Return Suits me |
712 | If Not ret Then Return NOTIFY_BAD |
715 | kmemleak_ignore(ret) |
716 | Return Suits me |
718 | Case action == MEM_CANCEL_ONLINE |
719 | Case action == xposed to userspace |
740 | Return Suits me |
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 |