Unix-system-calls-get-thread-area
提供:Dev Guides
[top]#
|http://www.google.com/[Google] | a|
Web | This Site |
選択した読書 Copyright©2014 by finddevguides |
[cols=",,,,,,,",] |
| | Home | | References | | Discussion Forums | | About TP
[width="100%",cols="100%",] |
a| == get_thread_area()-Unix、Linuxシステムコール
[[File:]] image :http://www.finddevguides.com/images/next.gif [next] image:http://www.finddevguides.com/add- this.gif [AddThisソーシャルブックマークボタン]
広告
NAME
get_thread_area-スレッドローカルストレージ(TLS)エリアを取得する
概要
- #include <linux/unistd.h> * *#include <asm/ldt.h> *
- int get_thread_area(struct user_desc * u_info ); *
説明
*get_thread_area* ()は、現在のスレッドのスレッドローカルストレージ(TLS)配列のエントリを返します。 エントリのインデックスは、ユーザーが渡した_u_info-> entry_number_の値に対応します。 値が境界内にある場合、 *get_thread_info* は、対応するTLSエントリを_u_info_が指す領域にコピーします。
返り値
*get_thread_area* ()は成功すると0を返します。 それ以外の場合、-1を返し、_errno_を適切に設定します。
エラー
Tag | Description |
---|---|
EFAULT | u_info is an invalid pointer. |
EINVAL | u_info→entry_number is out of bounds. |
準拠
*get_thread_area* ()はLinux固有であり、移植を目的としたプログラムでは使用しないでください。
可用性
*get_thread_area* ()のバージョンは、Linux 2.5.32で初めて登場しました。
関連項目
[[File:]] image :http://www.finddevguides.com/images/next.gif [next] [[File:]]
広告
|
[cols="^",] |
|Advertisements