OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man2 / get_thread_area.2
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.
4 .\"
5 .\" Written by Kent Yoder.
6 .\"
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>
11 .\"
12 .\"WORD:        Thread Local Storage    ¥¹¥ì¥Ã¥É¶É½êµ­²±
13 .\"
14 .TH GET_THREAD_AREA 2 2008-11-27 "Linux" "Linux Programmer's Manual"
15 .SH Ì¾Á°
16 get_thread_area \- ¥¹¥ì¥Ã¥É¶É½êµ­²± (TLS) Îΰè¤ò¼è¤ê½Ð¤¹
17 .SH ½ñ¼°
18 .B #include <linux/unistd.h>
19 .br
20 .B #include <asm/ldt.h>
21 .sp
22 .BI "int get_thread_area(struct user_desc *" u_info );
23 .SH ÀâÌÀ
24 .BR get_thread_area ()
25 ¤Ï¡¢¥«¥ì¥ó¥È¡¦¥¹¥ì¥Ã¥É¤Î¥¹¥ì¥Ã¥É¶É½êµ­²±
26 (Thread Local Storage; TLS) ÇÛÎó¤ÎÃæ¤Î¥¨¥ó¥È¥ê¤òÊÖ¤¹¡£
27 ¥¨¥ó¥È¥ê¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤Ï¡¢¥æ¡¼¥¶¤«¤é°ú¤­¿ô¤È¤·¤ÆÅϤµ¤ì¤ë
28 \fIu_info\->entry_number\fP ¤ÎÃͤËÂбþ¤·¤Æ¤¤¤ë¡£
29 Ãͤ¬ÈÏ°ÏÆâ¤Ë¤¢¤ë¾ì¹ç¡¢
30 .BR get_thread_info ()
31 ¤ÏÂбþ¤¹¤ë TLS ¥¨¥ó¥È¥ê¤ò
32 \fIu_info\fP ¤Ç»Ø¤µ¤ì¤¿Îΰè¤Ë¥³¥Ô¡¼¤¹¤ë¡£
33 .SH ÊÖ¤êÃÍ
34 À®¸ù¤·¤¿¾ì¹ç¡¢
35 .BR get_thread_area ()
36 ¤Ï 0 ¤òÊÖ¤¹¡£
37 ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¡¢ \-1 ¤òÊÖ¤·¡¢
38 .I errno
39 ¤ËŬÀÚ¤ÊÃͤò¥»¥Ã¥È¤¹¤ë¡£
40 .SH ¥¨¥é¡¼
41 .TP
42 .B EFAULT
43 \fIu_info\fP ¤¬ÉÔÀµ¤Ê¥Ý¥¤¥ó¥¿¤Ç¤¢¤ë¡£
44 .TP
45 .B EINVAL
46 \fIu_info\->entry_number\fP ¤¬Èϰϳ°¤Ç¤¢¤ë¡£
47 .SH ¥Ð¡¼¥¸¥ç¥ó
48 .BR get_thread_area ()
49 ¤Ï Linux 2.5.32 ¤Ç½é¤á¤ÆÅо줷¤¿¡£
50 .SH ½àµò
51 .BR get_thread_area ()
52 ¤Ï Linux Æȼ«¤Î´Ø¿ô¤Ç¤¢¤ê¡¢
53 °Ü¿¢¤ò°Õ¿Þ¤·¤¿¥×¥í¥°¥é¥à¤Ç¤Ï»ÈÍѤ¹¤Ù¤­¤Ç¤Ï¤Ê¤¤¡£
54 .SH Ãí°Õ
55 glibc ¤Ï¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤ËÂФ¹¤ë¥é¥Ã¥Ñ¡¼´Ø¿ô¤òÄ󶡤·¤Æ¤¤¤Ê¤¤¡£
56 ¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¸Æ¤Ó½Ð¤¹¤Ë¤Ï
57 .BR syscall (2)
58 ¤ò»È¤¦¤³¤È¡£
59 .SH ´ØÏ¢¹àÌÜ
60 .BR modify_ldt (2),
61 .BR set_thread_area (2)