1USER_REGSET_SET_FN(9) Machine State USER_REGSET_SET_FN(9)
2
3
4
6 user_regset_set_fn - type of set function in struct user_regset
7
9 typedef int user_regset_set_fn(struct task_struct * target,
10 const struct user_regset * regset,
11 unsigned int pos, unsigned int count,
12 const void * kbuf,
13 const void __user * ubuf);
14
16 target
17 thread being examined
18
19 regset
20 regset being examined
21
22 pos
23 offset into the regset data to access, in bytes
24
25 count
26 amount of data to copy, in bytes
27
28 kbuf
29 if not NULL, a kernel-space pointer to copy from
30
31 ubuf
32 if kbuf is NULL, a user-space pointer to copy from
33
35 Store register values. Return 0 on success; -EIO or -ENODEV are usual
36 failure returns. The pos and count values are in bytes, but must be
37 properly aligned. If kbuf is non-null, that buffer is used and ubuf is
38 ignored. If kbuf is NULL, then ubuf gives a userland pointer to access
39 directly, and an -EFAULT return value is possible.
40
41
42
43Kernel Hackers Manual 2.6. November 2011 USER_REGSET_SET_FN(9)