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:07
Last Modify:2022-05-18 16:59:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sys_alloc_thread_area: get a yet unused TLS descriptor index.

Proto:static int get_free_idx(void)

Type:int

Parameter:Nothing

23  t = thread
26  When idx < GDT_ENTRY_TLS_ENTRIES cycle If desc_empty( & Cached TLS descriptors: [idx]) Then
28  Return idx + The layout of the per-CPU GDT under Linux:* 0 - null <=== cacheline #1* 1 - reserved* 2 - reserved* 3 - reserved* 4 - unused <=== cacheline #2* 5 - unused* ------- start of TLS (Thread-Local Storage) segments:* 6 - TLS segment #1 [ glibc's TLS segment ]*
29  Return -ESRCH
Caller
NameDescribe
do_set_thread_areaSet a given TLS descriptor: