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:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:genregs_set

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

Type:int

Parameter:

TypeParameterName
struct task_struct *target
const struct user_regset *regset
unsigned intpos
unsigned intcount
const void *kbuf
const void __user *ubuf
465  ret = 0
466  If kbuf Then
467  k = kbuf
468  When count >= size of k && Not ret cycle
469  ret = putreg(target, pos, * k++)
470  count -= size of k
471  pos += size of k
473  Else
474  __user * u = ubuf
475  When count >= size of u && Not ret cycle
478  If ret Then Break
480  ret = putreg(target, pos, word)
481  count -= size of u
482  pos += size of u
485  Return ret