Function report |
Source Code:mm\slub.c |
Create Date:2022-07-28 15:47:22 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:slab_free_freelist_hook
Proto:static inline bool slab_free_freelist_hook(struct kmem_cache *s, void **head, void **tail)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kmem_cache * | s | |
| void ** | head | |
| void ** | tail |
| 1438 | * head = NULL |
| 1439 | * tail = NULL |
| 1441 | Do |
| 1443 | next = get_freepointer(s, object) |
| 1445 | If slab_want_init_on_free(s) Then |
| 1450 | memset(object, 0, The size of an object without metadata ) |
| 1451 | rsize = If Used for retrieving partial slabs, etc. & DEBUG: Red zone objs in a cache Then Left redzone padding size Else 0 |
| 1453 | memset((char * )object + Offset to metadata , 0, The size of an object including metadata - Offset to metadata - rsize) |
| 1458 | If Not slab_free_hook(s, object) Then |
| 1470 | Return * head != NULL |
| Name | Describe |
|---|---|
| slab_free |
| 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 |