*参照元 [#h2df9392] #backlinks *説明 [#xc39b417] -パス: [[linux-4.4.1/kernel/time/hrtimer.c]] -FIXME: これは何? --説明 **引数 [#udb8dfff] -struct hrtimer *timer -- --[[linux-4.4.1/hrtimer]] **返り値 [#tf23db4e] -int -- **参考 [#x6a62177] *実装 [#n9bda9d7] /** * hrtimer_cancel - cancel a timer and wait for the handler to finish. * @timer: the timer to be cancelled * * Returns: * 0 when the timer was not active * 1 when the timer was active */ int hrtimer_cancel(struct hrtimer *timer) { for (;;) { int ret = hrtimer_try_to_cancel(timer); - --[[linux-4.4.1/hrtimer_try_to_cancel()]] if (ret >= 0) return ret; cpu_relax(); - --[[linux-4.4.1/cpu_relax()]] } } EXPORT_SYMBOL_GPL(hrtimer_cancel); - --[[linux-4.4.1/EXPORT_SYMBOL_GPL()]] *コメント [#r6304b2f]