Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tls.c Create Date:2022-07-28 07:52:13
Last Modify:2022-05-18 16:59:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:regset_tls_get

Proto:int regset_tls_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
264  If pos >= GDT_ENTRY_TLS_ENTRIES * sizeof(structuser_desc) || pos % sizeof(structuser_desc) != 0 || count % sizeof(structuser_desc) != 0 Then Return -EINVAL
269  pos /= sizeof(structuser_desc)
270  count /= sizeof(structuser_desc)
272  tls = Cached TLS descriptors: [pos]
274  If kbuf Then
275  info = kbuf
276  When count-- > 0 cycle
277  Get the current Thread-Local Storage area:
279  Else
280  __user * u_info = ubuf
281  When count-- > 0 cycle
284  If __copy_to_user(u_info++, & info, size of info ) Then Return -EFAULT
289  Return 0