1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
.\" Copyright (C) 2003 Free Software Foundation, Inc.
.\" This file is distributed according to the GNU General Public License.
.\" See the file COPYING in the top level source directory for details.
.\"
.\" Japanese Version Copyright (c) 2003 Akihiro MOTOKI
.\" all rights reserved.
.\" Translated 2003-07-08, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\" Updated 2005-02-24, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
.TH SET_THREAD_AREA 2 2003-02-21 "Linux" "Linux Programmer's Manual"
.SH ̾
set_thread_area \- åɶɽ국 (TLS) ΰꤹ
.SH
.B #include <linux/unistd.h>
.br
.B #include <asm/ldt.h>
.sp
.BI "int set_thread_area(struct user_desc *" u_info );
.SH
.PP
.BR set_thread_area ()
ϡȡåɤΥåɶɽ국 (Thread Local Storage; TLS)
Υȥꤹ롣
.BR set_thread_area ()
ˤꤵ TLS Υȥϡ桼ȤϤ
.I u_info\->entry_number
ͤбƤ롣ͤϰˤ硢
.BR set_thread_area ()
.I u_info
ǻؤ줿 TLS ǥץåɤ TLS ˥ԡ롣
.PP
.I entry_number
Ȥ \-1 Ϥ줿硢
.BR set_thread_area ()
̤ (free) TLS ȥѤ롣
̤Ѥ TLS ȥ꤬ä硢ɤΥȥ꤬ѹ줿ʬ
褦˽λ
.I u_info\->entry_number
ͤѹ롣
.SH ֤
.BR set_thread_area ()
0 ֤Ԥ \-1 ֤
.I errno
Ŭڤꤹ롣
.SH 顼
.TP
.B EINVAL
.I u_info\->entry_number
ϰϳǤ롣
.TP
.B EFAULT
.I u_info
ʥݥǤ롣
.TP
.B ESRCH
̤Ѥ TLS ȥ꤬Ĥʤä
.SH С
.BR set_thread_area ()
Linux 2.5.29 ǽо줷
.SH
.BR set_thread_area ()
Linux ȼǤꡢܿտޤץǤϻѤ٤ǤϤʤ
.SH Ϣ
.BR get_thread_area (2)
|