1USER_REGSET_GET_FN(9)            Machine State           USER_REGSET_GET_FN(9)
2
3
4

NAME

6       user_regset_get_fn - type of get function in struct user_regset
7

SYNOPSIS

9       typedef int user_regset_get_fn(struct task_struct * target,
10                                      const struct user_regset * regset,
11                                      unsigned int pos, unsigned int count,
12                                      void * kbuf, void __user * ubuf);
13

ARGUMENTS

15       target
16           thread being examined
17
18       regset
19           regset being examined
20
21       pos
22           offset into the regset data to access, in bytes
23
24       count
25           amount of data to copy, in bytes
26
27       kbuf
28           if not NULL, a kernel-space pointer to copy into
29
30       ubuf
31           if kbuf is NULL, a user-space pointer to copy into
32

DESCRIPTION

34       Fetch register values. Return 0 on success; -EIO or -ENODEV are usual
35       failure returns. The pos and count values are in bytes, but must be
36       properly aligned. If kbuf is non-null, that buffer is used and ubuf is
37       ignored. If kbuf is NULL, then ubuf gives a userland pointer to access
38       directly, and an -EFAULT return value is possible.
39
40
41
42Kernel Hackers Manual 2.6.         June 2019             USER_REGSET_GET_FN(9)
Impressum