函数逻辑报告 |
Source Code:mm\slab.h |
Create Date:2022-07-27 15:27:23 |
Last Modify:2022-05-23 16:25:42 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:slab_pre_alloc_hook
函数原型:static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, gfp_t flags)
返回类型:struct kmem_cache
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmem_cache * | s | |
gfp_t | flags |
560 | flags与等于gfp_allowed_mask is set to GFP_BOOT_MASK during early boot to restrict what* GFP flags are used before interrupts are enabled |
562 | fs_reclaim_acquire(flags) |
563 | fs_reclaim_release(flags) |
567 | 如果should_failslab(s, flags)则返回:NULL |
570 | 如果memcg_kmem_enabled()且flags按位与__GFP_ACCOUNT或Used for retrieving partial slabs, etc. 按位与SLAB_ACCOUNT的值则返回:memcg_kmem_get_cache(s) |
574 | 返回:s |
名称 | 描述 |
---|---|
slab_alloc_node | |
slab_alloc | |
kmem_cache_alloc_bulk | |
slab_alloc_node | Inlined fastpath so that allocation functions (kmalloc, kmem_cache_alloc)* have the fastpath folded into their functions. So no function call* overhead for requests that can be satisfied on the fastpath. |
kmem_cache_alloc_bulk | Note that interrupts must be enabled when calling this function. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |