Function report |
Source Code:mm\mempolicy.c |
Create Date:2022-07-28 15:33:35 |
| Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct shared_policy * | sp | |
| struct mempolicy * | mpol |
| 2603 | root = |
| 2604 | rwlock_init( & lock) |
| 2606 | If mpol Then |
| 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 | If IS_ERR(new) Then Go to free_scratch |
| 2620 | task_unlock(current process) |
| 2627 | mpol_set_shared_policy(sp, & pvma, new) |
| 2629 | put_new : |
| 2631 | free_scratch : |
| 2632 | NODEMASK_SCRATCH_FREE(scratch) |
| 2633 | put_mpol : |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |