函数逻辑报告 |
Source Code:mm\mempolicy.c |
Create Date:2022-07-27 17:04:11 |
| Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Set the process memory policy
函数原型:static long do_set_mempolicy(unsigned short mode, unsigned short flags, nodemask_t *nodes)
返回类型:long
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| unsigned short | mode | |
| unsigned short | flags | |
| nodemask_t * | nodes |
| 811 | NODEMASK_SCRATCH(scratch) |
| 817 | new等于This function just creates a new policy, does some check and simple* initialization. You must invoke mpol_set_nodemask() to set nodes. |
| 818 | 如果是错误则 |
| 825 | 如果ret则 |
| 832 | 如果new且See MPOL_* above 恒等于MPOL_INTERLEAVE则il_prev等于MAX_NUMNODES减1 |
| 834 | task_unlock(当前进程) |
| 836 | ret等于0 |
| 837 | out : |
| 839 | 返回:ret |
| 名称 | 描述 |
|---|---|
| kernel_set_mempolicy | Set the process memory policy |
| numa_policy_init | 初始化NUMA的内存访问策略 |
| numa_default_policy | Reset policy of current process to default |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |