Function report |
Source Code:mm\kasan\common.c |
Create Date:2022-07-28 15:51:07 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__kasan_kmalloc
Proto:static void *__kasan_kmalloc(struct kmem_cache *cache, const void *object, size_t size, gfp_t flags, bool keep_tag)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kmem_cache * | cache | |
| const void * | object | |
| size_t | size | |
| gfp_t | flags | |
| bool | keep_tag |
| 491 | tag = 0xff |
| 493 | If gfpflags_allow_blocking(flags) Then quarantine_reduce() |
| 496 | If Value for the false possibility is greater at compile time(object == NULL) Then Return NULL |
| 504 | If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_KASAN_SW_TAGS) Then tag = This function assigns a tag to an object considering the following:* 1 |
| 508 | kasan_unpoison_shadow(set_tag(object, tag), size) |
| 512 | If Used for retrieving partial slabs, etc. & SLAB_KASAN Then set_track( & alloc_track, flags) |
| Name | Describe |
|---|---|
| kasan_slab_alloc | |
| kasan_kmalloc | |
| kasan_krealloc |
| 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 |