Function report |
Source Code:arch\x86\kernel\fpu\xstate.c |
Create Date:2022-07-28 07:50:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Convert from kernel XSAVES compacted format to standard format and copy* to a kernel-space ptrace buffer.* It supports partial copy but pos always starts from zero. This is called* from xstateregs_get() and there we check the CPU has XSAVES.
Proto:int copy_xstate_to_kernel(void *kbuf, struct xregs_state *xsave, unsigned int offset_start, unsigned int size_total)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | kbuf | |
| struct xregs_state * | xsave | |
| unsigned int | offset_start | |
| unsigned int | size_total |
| 990 | If Value for the false possibility is greater at compile time(offset_start != 0) Then Return -EFAULT |
| 998 | xfeatures &= ~Supervisor features |
| 1003 | offset = offsetof(structxregs_state, header) |
| 1008 | When i < XFEATURE_MAX cycle |
| 1013 | src = Given an xstate feature nr, calculate where in the xsave* buffer the state is. Callers should ensure that the buffer* is valid. |
| 1015 | offset = xstate_offsets[i] |
| 1016 | size = xstate_sizes[i] |
| 1019 | If offset + size > size_total Then Break |
| 1028 | offset = offsetof(structfxregs_state, mxcsr) |
| 1036 | offset = offsetof(structfxregs_state, sw_reserved) |
| 1037 | size = size of xstate_fx_sw_bytes |
| 1041 | Return 0 |
| 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 |