1 .\" Copyright (C) 2003 Free Software Foundation, Inc.
2 .\" This file is distributed according to the GNU General Public License.
3 .\" See the file COPYING in the top level source directory for details.
5 .\" Written by Kent Yoder.
7 .\" Japanese Version Copyright (c) 2003 Akihiro MOTOKI
8 .\" all rights reserved.
9 .\" Translated Tue Jul 8 03:28:55 JST 2003
10 .\" by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
12 .\"WORD: Thread Local Storage スレッド局所記憶
14 .TH GET_THREAD_AREA 2 2008-11-27 "Linux" "Linux Programmer's Manual"
16 get_thread_area \- スレッド局所記憶 (TLS) 領域を取り出す
18 .B #include <linux/unistd.h>
20 .B #include <asm/ldt.h>
22 .BI "int get_thread_area(struct user_desc *" u_info );
24 .BR get_thread_area ()
26 (Thread Local Storage; TLS) 配列の中のエントリを返す。
27 エントリのインデックスは、ユーザから引き数として渡される
28 \fIu_info\->entry_number\fP の値に対応している。
30 .BR get_thread_info ()
32 \fIu_info\fP で指された領域にコピーする。
35 .BR get_thread_area ()
43 \fIu_info\fP が不正なポインタである。
46 \fIu_info\->entry_number\fP が範囲外である。
48 .BR get_thread_area ()
49 は Linux 2.5.32 で初めて登場した。
51 .BR get_thread_area ()
53 移植を意図したプログラムでは使用すべきではない。
55 glibc はこのシステムコールに対するラッパー関数を提供していない。
61 .BR set_thread_area (2)