函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tls.c Create Date:2022-07-27 08:52:18
Last Modify:2022-05-18 16:59:10 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sys_alloc_thread_area: get a yet unused TLS descriptor index.

函数原型:static int get_free_idx(void)

返回类型:int

参数:

23  t等于thread
26 idx小于GDT_ENTRY_TLS_ENTRIES循环如果desc_empty( & Cached TLS descriptors: [idx])则
28  返回:idxThe 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  返回:负ESRCH
调用者
名称描述
do_set_thread_areaSet a given TLS descriptor: