Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:user_regset_copyin

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

Type:int

Parameter:

TypeParameterName
unsigned int *pos
unsigned int *count
const void **kbuf
const void __user **ubuf
void *data
const intstart_pos
const intend_pos
284  If count == 0 Then Return 0
286  BUG_ON( * pos < start_pos)
287  If end_pos < 0 || pos < end_pos Then
288  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)
290  data += pos - start_pos
291  If kbuf Then
292  memcpy(data, * kbuf, copy)
293  kbuf += copy
294  Else if __copy_from_user(data, * ubuf, copy) Then Return -EFAULT
296  Else ubuf += copy
298  pos += copy
299  count -= copy
301  Return 0
Caller
NameDescribe
xfpregs_set
xstateregs_set
fpregs_set