linux-4.4.1/hrtimer_cancel()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#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 hand...
* @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]
終了行:
*参照元 [#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 hand...
* @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]
ページ名: