Function report | 
Source Code:mm\kasan\common.c | 
Create Date:2022-07-28 15:51:16 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:kasan_module_alloc
Proto:int kasan_module_alloc(void *addr, size_t size)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| void * | addr | |
| size_t | size | 
| 604 | shadow_start = kasan_mem_to_shadow(addr) | 
| 605 | scaled_size = size + KASAN_SHADOW_MASK >> KASAN_SHADOW_SCALE_SHIFT | 
| 608 | If WARN_ON(!st whether an address (unsigned long or pointer) is aligned to PAGE_SIZE (shadow_start)) Then Return -EINVAL | 
| 617 | If ret Then | 
| 624 | Return -ENOMEM | 
| 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  |