函数逻辑报告 |
Source Code:mm\slub.c |
Create Date:2022-07-27 17:21:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:slab_free_freelist_hook
函数原型:static inline bool slab_free_freelist_hook(struct kmem_cache *s, void **head, void **tail)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmem_cache * | s | |
void ** | head | |
void ** | tail |
1438 | * head = NULL |
1439 | * tail = NULL |
1441 | 循环 |
1443 | next等于get_freepointer(s, object) |
1445 | 如果slab_want_init_on_free(s)则 |
1450 | memset(object, 0, The size of an object without metadata ) |
1451 | rsize等于如果Used for retrieving partial slabs, etc. 按位与DEBUG: Red zone objs in a cache 则Left redzone padding size 否则0 |
1453 | memset((char * )object + Offset to metadata , 0, The size of an object including metadata - Offset to metadata - rsize) |
1458 | 如果非slab_free_hook(s, object)则 |
1470 | 返回: * head != NULL |
名称 | 描述 |
---|---|
slab_free |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |