Function report |
Source Code:arch\x86\kernel\fpu\regset.c |
Create Date:2022-07-28 07:49:41 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:xstateregs_set
Proto:int xstateregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | target | |
| const struct user_regset * | regset | |
| unsigned int | pos | |
| unsigned int | count | |
| const void * | kbuf | |
| const void __user * | ubuf |
| 121 | If Not boot_cpu_has(XSAVE/XRSTOR/XSETBV/XGETBV instructions ) Then Return -ENODEV |
| 127 | If pos != 0 || count < fpu_user_xstate_size Then Return -EFAULT |
| 134 | If using_compacted_format() Then |
| 135 | If kbuf Then ret = copy_kernel_to_xstate(xsave, kbuf) |
| 137 | Else ret = copy_user_to_xstate(xsave, ubuf) |
| 139 | Else |
| 141 | If Not ret Then ret = Validate an xstate header supplied by userspace (ptrace or sigreturn) |
| 156 | Return ret |
| 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 |