linux-2.6.33/wait_on_bit_lock()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#d152ce95]
#backlinks
*説明 [#y1533087]
-パス: [[linux-2.6.33/include/linux/wait.h]]
-FIXME: これは何?
--説明
**引数 [#vef14b1b]
-void *word
--
-int bit
--
-int (*action)(void *)
--
-unsigned mode
--
**返り値 [#md9efc23]
-int
--
**参考 [#f42a7b7e]
*実装 [#g9a3bd26]
/**
* wait_on_bit_lock - wait for a bit to be cleared, when...
* @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...
* when one intends to set it, for instance, trying to l...
* For instance, if one were to have waiters trying to s...
* and waiting for it to clear before setting it, one wo...
* wait_on_bit() in threads waiting to be able to set th...
* One uses wait_on_bit_lock() where one is waiting for ...
* clear with the intention of setting it, and when done...
*/
static inline int wait_on_bit_lock(void *word, int bit,
int (*action)(void *), unsigned mode)
{
if (!test_and_set_bit(bit, word))
-
--[[linux-2.6.33/test_and_set_bit()]]
return 0;
return out_of_line_wait_on_bit_lock(word, bit, action, ...
-
--[[linux-2.6.33/out_of_line_wait_on_bit_lock()]]
}
*コメント [#a375de5b]
終了行:
*参照元 [#d152ce95]
#backlinks
*説明 [#y1533087]
-パス: [[linux-2.6.33/include/linux/wait.h]]
-FIXME: これは何?
--説明
**引数 [#vef14b1b]
-void *word
--
-int bit
--
-int (*action)(void *)
--
-unsigned mode
--
**返り値 [#md9efc23]
-int
--
**参考 [#f42a7b7e]
*実装 [#g9a3bd26]
/**
* wait_on_bit_lock - wait for a bit to be cleared, when...
* @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...
* when one intends to set it, for instance, trying to l...
* For instance, if one were to have waiters trying to s...
* and waiting for it to clear before setting it, one wo...
* wait_on_bit() in threads waiting to be able to set th...
* One uses wait_on_bit_lock() where one is waiting for ...
* clear with the intention of setting it, and when done...
*/
static inline int wait_on_bit_lock(void *word, int bit,
int (*action)(void *), unsigned mode)
{
if (!test_and_set_bit(bit, word))
-
--[[linux-2.6.33/test_and_set_bit()]]
return 0;
return out_of_line_wait_on_bit_lock(word, bit, action, ...
-
--[[linux-2.6.33/out_of_line_wait_on_bit_lock()]]
}
*コメント [#a375de5b]
ページ名: