函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\regset.h Create Date:2022-07-27 08:49:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:These are helpers for writing regset get/set functions in arch code

函数原型: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)

返回类型:int

参数:

类型参数名称
unsigned int *pos
unsigned int *count
void **kbuf
void __user **ubuf
const void *data
const intstart_pos
const intend_pos
259  如果count恒等于0则返回:0
261  BUG_ON( * pos < start_pos)
262  如果end_pos小于0或pos小于end_pos
263  copy等于如果end_pos小于0则count否则两数取小( * count, end_pos - * pos)
265  data加等于posstart_pos
266  如果kbuf
267  memcpy( * kbuf, data, copy)
268  kbuf加等于copy
269  否则如果__copy_to_user( * ubuf, data, copy)则返回:负EFAULT
271  否则ubuf加等于copy
273  pos加等于copy
274  count减等于copy
276  返回:0
调用者
名称描述
xfpregs_get
xstateregs_get
fpregs_get
ioperm_get