函数逻辑报告 |
Source Code:mm\mempolicy.c |
Create Date:2022-07-27 17:06:46 |
| Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:mpol_shared_policy_init - initialize shared policy for inode*@sp: pointer to inode shared policy*@mpol: struct mempolicy to install* Install non-NULL @mpol in inode's shared policy rb-tree.* On entry, the current task has a reference on a non-NULL @mpol.
函数原型:void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct shared_policy * | sp | |
| struct mempolicy * | mpol |
| 2603 | root = |
| 2604 | rwlock_init( & lock) |
| 2606 | 如果mpol则 |
| 2609 | NODEMASK_SCRATCH(scratch) |
| 2614 | new等于This function just creates a new policy, does some check and simple* initialization. You must invoke mpol_set_nodemask() to set nodes. |
| 2615 | 如果是错误则转到:free_scratch |
| 2620 | task_unlock(当前进程) |
| 2627 | mpol_set_shared_policy(sp, & pvma, new) |
| 2629 | put_new : |
| 2631 | free_scratch : |
| 2632 | NODEMASK_SCRATCH_FREE(scratch) |
| 2633 | put_mpol : |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |