Function report |
Source Code:mm\mempolicy.c |
Create Date:2022-07-28 15:32:23 |
| Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Retrieve NUMA policy
Proto:static int kernel_get_mempolicy(int __user *policy, unsigned long __user *nmask, unsigned long maxnode, unsigned long addr, unsigned long flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int __user * | policy | |
| unsigned long __user * | nmask | |
| unsigned long | maxnode | |
| unsigned long | addr | |
| unsigned long | flags |
| 1583 | If nmask != NULL && maxnode < nr_node_ids Then Return -EINVAL |
| 1586 | err = Retrieve NUMA policy |
| 1591 | If policy && Write a simple value into user space(pval, policy) Then Return -EFAULT |
| 1594 | If nmask Then err = Copy a kernel node mask to user space |
| 1597 | Return err |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE5 | |
| COMPAT_SYSCALL_DEFINE5 |
| 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 |