Function report | 
Source Code:kernel\sched\core.c | 
Create Date:2022-07-28 09:36:40 | 
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Copy the kernel size attribute structure (which might be larger* than what user-space knows about) to user-space.* Note that all cases are valid: user-space buffer can be larger or* smaller than the kernel-space buffer. The usual case is that both
Proto:static int sched_attr_copy_to_user(struct sched_attr __user *uattr, struct sched_attr *kattr, unsigned int usize)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct sched_attr __user * | uattr | |
| struct sched_attr * | kattr | |
| unsigned int | usize | 
| 5340 | size = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(usize, ksize) | 
| 5342 | If copy_to_user(uattr, kattr, size) Then Return -EFAULT | 
| 5345 | Return 0 | 
| Name | Describe | 
|---|---|
| SYSCALL_DEFINE4 | sys_sched_getattr - similar to sched_getparam, but with sched_attr*@pid: the pid in question.*@uattr: structure containing the extended parameters.*@usize: sizeof(attr) for fwd/bwd comp.*@flags: for future extension. | 
| 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  |