| Function report | 
| Source Code: include\linux\uaccess.h | Create Date:2022-07-28 05:59:55 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:py_struct_from_user: copy a struct from userspace*@dst: Destination address, in kernel space
Proto:static __always_inline __must_check int copy_struct_from_user(void *dst, size_t ksize, const void __user *src, size_t usize)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| void * | dst | |
| size_t | ksize | |
| const void __user * | src | |
| size_t | usize | 
| 287 | size = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(ksize, usize) | 
| 288 | rest = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(ksize, usize) - size | 
| 299 | If copy_from_user(dst, src, size) Then Return -EFAULT | 
| 301 | Return 0 | 
| Name | Describe | 
|---|---|
| test_copy_struct_from_user | |
| copy_clone_args_from_user | |
| sched_copy_attr | Mimics kernel/events/core.c perf_copy_attr(). | 
| perf_copy_attr | 
| 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 |