函数逻辑报告 | 
Source Code:mm\mempolicy.c | 
Create Date:2022-07-27 17:05:56 | 
| Last Modify:2020-03-17 22:28:11 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Depending on the memory policy provide a node from which to allocate the* next slab entry.
函数原型:unsigned int mempolicy_slab_node(void)
返回类型:unsigned int
参数:无
| 1861 | 如果in_interrupt()则返回:node | 
| 1865 | 如果非policy或See set_mempolicy() MPOL_F_* above 按位与preferred local allocation 则返回:node | 
| 1869 | 当:See MPOL_* above 恒等于MPOL_PREFERRED | 
| 1873 | 返回: preferred | 
| 1875 | 当:See MPOL_* above 恒等于MPOL_INTERLEAVE | 
| 1878 | 当:See MPOL_* above 恒等于MPOL_BIND | 
| 1886 | highest_zoneidx等于gfp_zone(GFP_KERNEL) | 
| 1890 | 返回:如果Pointer to actual zone 则zone_to_nid(Pointer to actual zone )否则node | 
| 1893 | 默认 | 
| 1894 | BUG() | 
| 名称 | 描述 | 
|---|---|
| alternate_node_alloc | 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. | 
| fallback_alloc | Fallback function if there was no memory available and no objects on a* certain node and fall back is permitted. First we scan all the* available node for available objects. If that fails then we* perform an allocation without specifying a node | 
| get_any_partial | Get a page from somewhere. Search in increasing NUMA distances. | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |