linux-2.6.33/wait_on_bit()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#cd5723e2]
#backlinks
*説明 [#t8a1ac27]
-パス: [[linux-2.6.33/include/linux/wait.h]]
-FIXME: これは何?
--説明
**引数 [#i2c48cf2]
-void *word
--
-int bit
--
-int (*action)(void *)
--
-unsigned mode
--
**返り値 [#b108b4fd]
-int
--
**参考 [#ne4ec5db]
*実装 [#t901837a]
/**
* wait_on_bit - wait for a bit to be cleared
* @word: the word being waited on, a kernel virtual add...
* @bit: the bit of the word being waited on
* @action: the function used to sleep, which may take s...
* @mode: the task state to sleep in
*
* There is a standard hashed waitqueue table for generi...
* is the part of the hashtable's accessor API that wait...
* For instance, if one were to have waiters on a bitfla...
* call wait_on_bit() in threads waiting for the bit to ...
* One uses wait_on_bit() where one is waiting for the b...
* but has no intention of setting it.
*/
static inline int wait_on_bit(void *word, int bit,
int (*action)(void *), unsigned mode)
{
if (!test_bit(bit, word))
-
--[[linux-2.6.33/test_bit()]]
return 0;
return out_of_line_wait_on_bit(word, bit, action, mode);
-
--[[linux-2.6.33/out_of_line_wait_on_bit()]]
}
*コメント [#y4981074]
終了行:
*参照元 [#cd5723e2]
#backlinks
*説明 [#t8a1ac27]
-パス: [[linux-2.6.33/include/linux/wait.h]]
-FIXME: これは何?
--説明
**引数 [#i2c48cf2]
-void *word
--
-int bit
--
-int (*action)(void *)
--
-unsigned mode
--
**返り値 [#b108b4fd]
-int
--
**参考 [#ne4ec5db]
*実装 [#t901837a]
/**
* wait_on_bit - wait for a bit to be cleared
* @word: the word being waited on, a kernel virtual add...
* @bit: the bit of the word being waited on
* @action: the function used to sleep, which may take s...
* @mode: the task state to sleep in
*
* There is a standard hashed waitqueue table for generi...
* is the part of the hashtable's accessor API that wait...
* For instance, if one were to have waiters on a bitfla...
* call wait_on_bit() in threads waiting for the bit to ...
* One uses wait_on_bit() where one is waiting for the b...
* but has no intention of setting it.
*/
static inline int wait_on_bit(void *word, int bit,
int (*action)(void *), unsigned mode)
{
if (!test_bit(bit, word))
-
--[[linux-2.6.33/test_bit()]]
return 0;
return out_of_line_wait_on_bit(word, bit, action, mode);
-
--[[linux-2.6.33/out_of_line_wait_on_bit()]]
}
*コメント [#y4981074]
ページ名: