*参照元 [#oaec8e6d] #backlinks *説明 [#o683d404] -パス: [[linux-4.4.1/]] -パス: [[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 to wake up * @key: is directly passed to the wakeup function * * It may be assumed that this function implies a write memory barrier before * changing the task state if and only if any tasks are woken up. */ 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]