OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man2 / arch_prctl.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (C) 2003 Andi Kleen
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
26 .\"         all rights reserved.
27 .\" Translated 2004-06-08, Yuichi SATO <ysato444@yahoo.co.jp>
28 .\" Updated 2005-11-19, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
29 .\" Updated 2008-02-10, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.77
30 .\"
31 .TH ARCH_PRCTL 2 2007-12-26 "Linux" "Linux Programmer's Manual"
32 .SH Ì¾Á°
33 arch_prctl \- ¥¢¡¼¥­¥Æ¥¯¥Á¥ã¸ÇÍ­¤Î¥¹¥ì¥Ã¥É¾õÂÖ¤òÀßÄꤹ¤ë
34 .SH ½ñ¼°
35 .nf
36 .B #include <asm/prctl.h>
37 .br
38 .B #include <sys/prctl.h>
39 .sp
40 .BI "int arch_prctl(int " code ", unsigned long *" addr );
41 .fi
42 .SH ÀâÌÀ
43 .BR arch_prctl ()
44 ´Ø¿ô¤Ï¥¢¡¼¥­¥Æ¥¯¥Á¥ã¸ÇÍ­¤Î¥×¥í¥»¥¹¾õÂÖ¤Þ¤¿¤Ï¥¹¥ì¥Ã¥É¾õÂÖ¤òÀßÄꤹ¤ë¡£
45 .I code
46 ¤ÏÉûµ¡Ç½¤òÁªÂò¤·¡¢°ú¤­¿ô
47 .I addr
48 ¤òÉûµ¡Ç½¤ËÅϤ¹¡£
49 .I addr
50 ¤Ï¡¢"set" Áàºî¤Ç¤Ï
51 .I "unsigned long"
52 ¤È¤·¤Æ¡¢"get" Áàºî¤Ç¤Ï
53 .I "unsigned long *"
54 ¤È¤·¤Æ²ò¼á¤µ¤ì¤ë¡£
55 .LP
56 x86-64 ¤ÎÉûµ¡Ç½¤Ï°Ê²¼¤ÎÄ̤ê:
57 .TP
58 .B ARCH_SET_FS
59 .I FS
60 ¥ì¥¸¥¹¥¿¤Î 64 ¥Ó¥Ã¥È¥Ù¡¼¥¹¤ò
61 .I addr
62 ¤ËÀßÄꤹ¤ë¡£
63 .TP
64 .B ARCH_GET_FS
65 ¸½ºß¤Î¥¹¥ì¥Ã¥É¤Î
66 .I FS
67 ¥ì¥¸¥¹¥¿¤Î 64 ¥Ó¥Ã¥È¥Ù¡¼¥¹Ãͤò¡¢
68 .I addr
69 ¤¬»Ø¤¹
70 .I unsigned long
71 ¤ÎÎΰè¤Ë³ÊǼ¤¹¤ë¡£
72 .TP
73 .B ARCH_SET_GS
74 .I GS
75 ¥ì¥¸¥¹¥¿¤Î 64 ¥Ó¥Ã¥È¥Ù¡¼¥¹¤ò
76 .I addr
77 ¤ËÀßÄꤹ¤ë¡£
78 .TP
79 .B ARCH_GET_GS
80 ¸½ºß¤Î¥¹¥ì¥Ã¥É¤Î
81 .I GS
82 ¥ì¥¸¥¹¥¿¤Î 64 ¥Ó¥Ã¥È¥Ù¡¼¥¹Ãͤò¡¢
83 .I addr
84 ¤¬»Ø¤¹
85 .I unsigned long
86 ¤ÎÎΰè¤Ë³ÊǼ¤¹¤ë¡£
87 .SH ÊÖ¤êÃÍ
88 À®¸ù¤¹¤ë¤È¡¢
89 .BR arch_prctl ()
90 ¤Ï 0 ¤òÊÖ¤¹¡£¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢
91 .I errno
92 ¤ò¥¨¥é¡¼¤ò¼¨¤¹ÃͤËÀßÄꤹ¤ë¡£
93 .SH ¥¨¥é¡¼
94 .TP
95 .B EFAULT
96 .I addr
97 ¤¬¥¢¥ó¥Þ¥Ã¥×¤µ¤ì¤¿¥¢¥É¥ì¥¹¤ò»Ø¤·¤Æ¤¤¤ë¤«¡¢¥×¥í¥»¥¹¤Î¥¢¥É¥ì¥¹¶õ´Ö¤Î³°¤Ë¤¢¤ë¡£
98 .TP
99 .B EINVAL
100 .I code
101 ¤¬Í­¸ú¤Ê¥µ¥Ö¥³¥Þ¥ó¥É¤Ç¤Ê¤¤¡£
102 .TP
103 .B EPERM
104 .I addr
105 ¤¬¥×¥í¥»¥¹¤Î¥¢¥É¥ì¥¹¶õ´Ö¤Î³°¤Ë¤¢¤ë¡£
106 .\" .SH Ãø¼Ô
107 .\" ¤³¤Î man ¥Ú¡¼¥¸¤Ï Andi Kleen ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤¿¡£
108 .SH ½àµò
109 .BR arch_prctl ()
110 ¤Ï Linux/x86-64 ³ÈÄ¥¤Ç¤¢¤ê¡¢°Ü¿¢À­¤ò°Õ¿Þ¤·¤¿¥×¥í¥°¥é¥à¤Ç¤Ï»È¤¦¤Ù¤­¤Ç¤Ê¤¤¡£
111 .SH Ãí°Õ
112 .BR arch_prctl ()
113 ¤Ï¸½ºß¤Î¤È¤³¤í Linux/x86-64 ¾å¤Î 64 ¥Ó¥Ã¥È¥×¥í¥°¥é¥à¤Ç¤Î¤ß¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¡£
114
115 ¿·¤·¤¤ 32 ¥Ó¥Ã¥È¥»¥°¥á¥ó¥È¥»¥ì¥¯¥¿¤¬¥í¡¼¥É¤µ¤ì¤¿¾ì¹ç¡¢
116 64 ¥Ó¥Ã¥È¥Ù¡¼¥¹¤ÏÊѹ¹¤µ¤ì¤ë¡£
117
118 .B ARCH_SET_GS
119 ¤¬Ìµ¸ú¤Ë¤µ¤ì¤Æ¤¤¤ë¥«¡¼¥Í¥ë¤â¤¢¤ë¡£
120
121 64 ¥Ó¥Ã¥È¥»¥°¥á¥ó¥È¥Ù¡¼¥¹¤Î¥³¥ó¥Æ¥­¥¹¥È¥¹¥¤¥Ã¥Á¤Ï¡¢¤ä¤ä¹â²Á¤Ç¤¢¤ë¡£
122 LDT ¤ò
123 .BR modify_ldt (2)
124 ¤ÇÀßÄꤷ¤Æ¥»¥°¥á¥ó¥È¥»¥ì¥¯¥¿¤ò»È¤¦¤«¡¢
125 (¥«¡¼¥Í¥ë 2.5 °Ê¹ß¤Î)
126 .BR set_thread_area (2)
127 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò»È¤¦¤³¤È¤Ë¤è¤ê¡¢
128 32 ¥Ó¥Ã¥È¥Ù¡¼¥¹¤òÀßÄꤹ¤ë¤È¤¤¤¦¹â®¤ÊÂåÂؼêÃʤ⤢¤ë¡£
129 4GB ¤è¤êÂ礭¤Ê¥Ù¡¼¥¹¤òÀßÄꤷ¤¿¤¤¾ì¹ç¤Ë¤Î¤ß¡¢
130 .BR arch_prctl ()
131 ¤¬É¬ÍפǤ¢¤ë¡£
132 ¥¢¥É¥ì¥¹¶õ´Ö¤ÎºÇ½é¤Î 2GB ¤Ë¤¢¤ë¥á¥â¥ê¤Ï¡¢
133 .BR mmap (2)
134 ¤Ë
135 .B MAP_32BIT
136 ¥Õ¥é¥°¤ò»ØÄꤷ¤Æ³ä¤êÅö¤Æ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
137
138 ¥Ð¡¼¥¸¥ç¥ó 2.7 »þÅÀ¤Ç¤Ï¡¢glibc ¤Ë¤Ï
139 .BR arch_prctl ()
140 ¤Î¥×¥í¥È¥¿¥¤¥×¤¬¤Ê¤¤¡£
141 º£¤Î¤È¤³¤í¥æ¡¼¥¶¤Ï¼«Ê¬¼«¿È¤ÇÀë¸À¤¹¤ëɬÍפ¬¤¢¤ë¡£
142 ¤³¤ì¤Ï¾­Íè¤Î glibc ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç½¤Àµ¤µ¤ì¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
143
144 .I FS
145 ¤Ï¥¹¥ì¥Ã¥É¥é¥¤¥Ö¥é¥ê¤Ç´û¤Ë»È¤ï¤ì¤Æ¤¤¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
146 .SH ´ØÏ¢¹àÌÜ
147 .BR mmap (2),
148 .BR modify_ldt (2),
149 .BR prctl (2),
150 .BR set_thread_area (2)
151 .sp
152 AMD X86-64 Programmer's manual