Function report | 
Source Code:mm\mempolicy.c | 
Create Date:2022-07-28 15:32:39 | 
| Last Modify:2020-03-17 22:28:11 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:COMPAT_SYSCALL_DEFINE4
Proto:COMPAT_SYSCALL_DEFINE4(migrate_pages, compat_pid_t, pid, compat_ulong_t, maxnode, const compat_ulong_t __user *, old_nodes, const compat_ulong_t __user *, new_nodes)
Type:
Parameter:Nothing
| 1693 | nr_bits = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, maxnode - 1, MAX_NUMNODES) | 
| 1694 | size = @a is a power of 2 value (nr_bits, BITS_PER_LONG) / 8 | 
| 1695 | If old_nodes Then | 
| 1696 | If compat_get_bitmap(nodes_addr(tmp_mask), old_nodes, nr_bits) Then Return -EFAULT | 
| 1698 | old = Allocate user-space memory for the duration of a single system call,* in order to marshall parameters inside a compat thunk. | 
| 1701 | If copy_to_user(old, nodes_addr(tmp_mask), size) Then Return -EFAULT | 
| 1704 | If new_nodes Then | 
| 1705 | If compat_get_bitmap(nodes_addr(tmp_mask), new_nodes, nr_bits) Then Return -EFAULT | 
| 1707 | If (new == NULL) Then new = Allocate user-space memory for the duration of a single system call,* in order to marshall parameters inside a compat thunk. | 
| 1709 | If copy_to_user(new, nodes_addr(tmp_mask), size) Then Return -EFAULT | 
| 1712 | Return kernel_migrate_pages(pid, nr_bits + 1, old, new) | 
| 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  |