函数逻辑报告 |
Source Code:mm\slab.c |
Create Date:2022-07-27 17:19:11 |
Last Modify:2022-05-23 17:02:55 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Try allocating on another node if PFA_SPREAD_SLAB is a mempolicy is set.* If we are in_interrupt, then process context, including cpusets and* mempolicy, may not apply and should not be used for allocation policy.
函数原型:static void *alternate_node_alloc(struct kmem_cache *cachep, gfp_t flags)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmem_cache * | cachep | |
gfp_t | flags |
3132 | 如果in_interrupt()或flags按位与__GFP_THISNODE则返回:NULL |
3135 | 如果cpuset_do_slab_mem_spread()且Used for retrieving partial slabs, etc. 按位与Spread some memory over cpuset 则nid_alloc等于cpuset_slab_spread_node() |
3137 | 否则如果mempolicy则nid_alloc等于Depending on the memory policy provide a node from which to allocate the* next slab entry. |
3141 | 返回:NULL |
名称 | 描述 |
---|---|
__do_cache_alloc |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |