Unix-system-calls-get-robust-list
[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_robust_list()-Unix、Linuxシステムコール
[[File:]] image :http://www.finddevguides.com/images/next.gif [next] image:http://www.finddevguides.com/add- this.gif [AddThisソーシャルブックマークボタン]
広告
NAME
get_robust_list、set_robust_list-堅牢なフューテックスのリストを取得/設定します
概要
#include <linux/futex.h> #include <syscall.h> long get_robust_list(int pid, struct robust_list_head* *head_ptr, size_t * long set_robust_list(struct robust_list_head* head, size_t len); |
説明
堅牢なfutex実装では、スレッドが終了するときにロック解除される堅牢なfutexのスレッドごとのリストを保持する必要があります。 これらのリストはユーザー空間で管理され、カーネルはリストの先頭の位置についてのみ通知されます。
返り値
エラー
_len_値がカーネルが予期する構造体 struct robust_list_head のサイズと一致しない場合、 set_robust_list 関数は EINVAL で失敗します。
アプリケーションの使用
スレッドは、堅牢なフューテックスリストを1つだけ持つことができます。したがって、この機能を使用するアプリケーションは、glibcが提供する堅牢なミューテックスを使用する必要があります。
システムコールはデバッグ目的でのみ使用でき、通常の操作には必要ありません。
両方のシステムコールは、アプリケーションプログラムでは関数として使用できません。 syscall (3)関数を使用して呼び出すことができます。
関連項目
[[File:]] image :http://www.finddevguides.com/images/next.gif [next] [[File:]]
広告
|
[cols="^",] |
|Advertisements