Function report | 
Source Code:mm\mempolicy.c | 
Create Date:2022-07-28 15:32:28 | 
| 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_DEFINE5
Proto:COMPAT_SYSCALL_DEFINE5(get_mempolicy, int __user *, policy, compat_ulong_t __user *, nmask, compat_ulong_t, maxnode, compat_ulong_t, addr, compat_ulong_t, flags)
Type:
Parameter:Nothing
| 1617 | DECLARE_BITMAP(bm, MAX_NUMNODES) | 
| 1619 | 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, nr_node_ids) | 
| 1620 | alloc_size = @a is a power of 2 value (nr_bits, BITS_PER_LONG) / 8 | 
| 1622 | If nmask Then nm = Allocate user-space memory for the duration of a single system call,* in order to marshall parameters inside a compat thunk. | 
| 1625 | err = Retrieve NUMA policy | 
| 1629 | copy_size = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, size of bm , alloc_size) | 
| 1630 | err = copy_from_user(bm, nm, copy_size) | 
| 1633 | err |= compat_put_bitmap(nmask, bm, nr_bits) | 
| 1636 | Return err | 
| 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  |