Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\regset.h Create Date:2022-07-28 07:49:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:These are helpers for writing regset get/set functions in arch code

Proto:static inline int user_regset_copyout(unsigned int *pos, unsigned int *count, void **kbuf, void __user **ubuf, const void *data, const int start_pos, const int end_pos)

Type:int

Parameter:

TypeParameterName
unsigned int *pos
unsigned int *count
void **kbuf
void __user **ubuf
const void *data
const intstart_pos
const intend_pos
259  If count == 0 Then Return 0
261  BUG_ON( * pos < start_pos)
262  If end_pos < 0 || pos < end_pos Then
263  copy = If end_pos < 0 Then count Else min - return minimum of two values of the same or compatible types*@x: first value*@y: second value( * count, end_pos - * pos)
265  data += pos - start_pos
266  If kbuf Then
267  memcpy( * kbuf, data, copy)
268  kbuf += copy
269  Else if __copy_to_user( * ubuf, data, copy) Then Return -EFAULT
271  Else ubuf += copy
273  pos += copy
274  count -= copy
276  Return 0
Caller
NameDescribe
xfpregs_get
xstateregs_get
fpregs_get
ioperm_get