Function report |
Source Code:mm\mempolicy.c |
Create Date:2022-07-28 15:32:12 |
| Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Set the process memory policy
Proto:static long kernel_set_mempolicy(int mode, const unsigned long __user *nmask, unsigned long maxnode)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | mode | |
| const unsigned long __user * | nmask | |
| unsigned long | maxnode |
| 1456 | flags = mode & MPOL_MODE_FLAGS is the union of all possible optional mode flags passed to* either set_mempolicy() or mbind(). |
| 1457 | mode &= ~MPOL_MODE_FLAGS is the union of all possible optional mode flags passed to* either set_mempolicy() or mbind(). |
| 1460 | If flags & Flags for set_mempolicy && flags & MPOL_F_RELATIVE_NODES Then Return -EINVAL |
| 1465 | Return Set the process memory policy |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE3 | |
| COMPAT_SYSCALL_DEFINE3 |
| 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 |