1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright (C) 2003 Andi Kleen
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.
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.
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
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
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
31 .TH ARCH_PRCTL 2 2007-12-26 "Linux" "Linux Programmer's Manual"
33 arch_prctl \- アーキテクチャ固有のスレッド状態を設定する
36 .B #include <asm/prctl.h>
38 .B #include <sys/prctl.h>
40 .BI "int arch_prctl(int " code ", unsigned long *" addr );
44 関数はアーキテクチャ固有のプロセス状態またはスレッド状態を設定する。
90 は 0 を返す。エラーの場合、\-1 を返し、
97 がアンマップされたアドレスを指しているか、プロセスのアドレス空間の外にある。
107 .\" この man ページは Andi Kleen によって書かれた。
110 は Linux/x86-64 拡張であり、移植性を意図したプログラムでは使うべきでない。
113 は現在のところ Linux/x86-64 上の 64 ビットプログラムでのみサポートされている。
115 新しい 32 ビットセグメントセレクタがロードされた場合、
121 64 ビットセグメントベースのコンテキストスイッチは、やや高価である。
126 .BR set_thread_area (2)
128 32 ビットベースを設定するという高速な代替手段もある。
129 4GB より大きなベースを設定したい場合にのみ、
132 アドレス空間の最初の 2GB にあるメモリは、
138 バージョン 2.7 時点では、glibc には
141 今のところユーザは自分自身で宣言する必要がある。
142 これは将来の glibc のバージョンで修正されるかもしれない。
145 はスレッドライブラリで既に使われているかもしれない。
150 .BR set_thread_area (2)
152 AMD X86-64 Programmer's manual