函数逻辑报告 |
Source Code:mm\slob.c |
Create Date:2022-07-27 17:09:46 |
Last Modify:2022-05-20 09:26:42 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:an't use ksize for kmem_cache_alloc memory, only kmalloc
函数原型:size_t __ksize(const void *block)
返回类型:size_t
参数:
类型 | 参数 | 名称 |
---|---|---|
const void * | block |
572 | sp等于virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(block) |
573 | 如果此条件成立可能性小(为编译器优化)(!PageSlab(sp))则返回:Returns the number of bytes in this potentially compound page. |
578 | 返回:SLOB_UNITS( * m)乘SLOB_UNIT |
名称 | 描述 |
---|---|
ksize | ksize - get the actual amount of memory allocated for a given object*@objp: Pointer to the object* kmalloc may internally round up allocations and return more memory* than requested. ksize() can be used to determine the actual amount of* memory allocated |
kasan_unpoison_slab |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |