Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\ptrace.c Create Date:2022-07-28 07:51:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:genregs_get

Proto:static int genregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf)

Type:int

Parameter:

TypeParameterName
struct task_struct *target
const struct user_regset *regset
unsigned intpos
unsigned intcount
void *kbuf
void __user *ubuf
440  If kbuf Then
441  k = kbuf
442  When count >= size of k cycle
443  k++ = getreg(target, pos)
444  count -= size of k
445  pos += size of k
447  Else
448  __user * u = ubuf
449  When count >= size of u cycle
452  count -= size of u
453  pos += size of u
457  Return 0