linux-4.4.1/__wake_up()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#oaec8e6d]
#backlinks
*説明 [#o683d404]
-パス: [[linux-4.4.1/kernel/sched/wait.c]]
-FIXME: これは何?
--説明
**引数 [#wfd74df9]
-wait_queue_head_t *q
-
--[[linux-4.4.1/wait_queue_head_t]]
-unsigned int mode
--
-int nr_exclusive
--
-void *key
--
**返り値 [#vd1d0823]
-なし
**参考 [#s50ccb49]
*実装 [#h8a5240e]
/**
* __wake_up - wake up threads blocked on a waitqueue.
* @q: the waitqueue
* @mode: which threads
* @nr_exclusive: how many wake-one or wake-many threads...
* @key: is directly passed to the wakeup function
*
* It may be assumed that this function implies a write ...
* changing the task state if and only if any tasks are ...
*/
void __wake_up(wait_queue_head_t *q, unsigned int mode,
int nr_exclusive, void *key)
{
unsigned long flags;
spin_lock_irqsave(&q->lock, flags);
__wake_up_common(q, mode, nr_exclusive, 0, key);
spin_unlock_irqrestore(&q->lock, flags);
-
--[[linux-4.4.1/spin_lock_irqsave()]]
--[[linux-4.4.1/__wake_up_common()]]
--[[linux-4.4.1/spin_unlock_irqrestore()]]
}
EXPORT_SYMBOL(__wake_up);
-ライセンスに関係なくシンボルを公開する。
--[[linux-4.4.1/EXPORT_SYMBOL()]]
*コメント [#uc06ef62]
終了行:
*参照元 [#oaec8e6d]
#backlinks
*説明 [#o683d404]
-パス: [[linux-4.4.1/kernel/sched/wait.c]]
-FIXME: これは何?
--説明
**引数 [#wfd74df9]
-wait_queue_head_t *q
-
--[[linux-4.4.1/wait_queue_head_t]]
-unsigned int mode
--
-int nr_exclusive
--
-void *key
--
**返り値 [#vd1d0823]
-なし
**参考 [#s50ccb49]
*実装 [#h8a5240e]
/**
* __wake_up - wake up threads blocked on a waitqueue.
* @q: the waitqueue
* @mode: which threads
* @nr_exclusive: how many wake-one or wake-many threads...
* @key: is directly passed to the wakeup function
*
* It may be assumed that this function implies a write ...
* changing the task state if and only if any tasks are ...
*/
void __wake_up(wait_queue_head_t *q, unsigned int mode,
int nr_exclusive, void *key)
{
unsigned long flags;
spin_lock_irqsave(&q->lock, flags);
__wake_up_common(q, mode, nr_exclusive, 0, key);
spin_unlock_irqrestore(&q->lock, flags);
-
--[[linux-4.4.1/spin_lock_irqsave()]]
--[[linux-4.4.1/__wake_up_common()]]
--[[linux-4.4.1/spin_unlock_irqrestore()]]
}
EXPORT_SYMBOL(__wake_up);
-ライセンスに関係なくシンボルを公開する。
--[[linux-4.4.1/EXPORT_SYMBOL()]]
*コメント [#uc06ef62]
ページ名: