*参照元 [#gb1b2b0d] #backlinks *説明 [#t465a38c] -パス: [[linux-2.6.33/drivers/base/power/runtime.c]] -パス: [[linux-2.6.33/include/linux/pm_runtime.h]] -FIXME: これは何? --CONFIG_PM_RUNTIME 有効: drivers/base/power/runtime.c の実装を使用する。 --- --CONFIG_PM_RUNTIME 無効: include/linux/pm_runtime.h の実装を使用する。 ---何もしない。常に 0 を返す。 **引数 [#i2dcf659] -struct device *dev -- **返り値 [#vc835f58] -int -- **参考 [#i47a715e] *実装 drivers/base/power/runtime.c [#haa55138] /** * pm_runtime_resume - Carry out run-time resume of given device. * @dev: Device to suspend. */ int pm_runtime_resume(struct device *dev) { int retval; spin_lock_irq(&dev->power.lock); - --[[linux-2.6.33/spin_lock_irq()]] retval = __pm_runtime_resume(dev, false); - --[[linux-2.6.33/__pm_runtime_resume()]] spin_unlock_irq(&dev->power.lock); - --[[linux-2.6.33/spin_unlock_irq()]] return retval; } EXPORT_SYMBOL_GPL(pm_runtime_resume); -GPL のモジュールにのみシンボルを公開する。 --[[linux-2.6.33/EXPORT_SYMBOL_GPL()]] *実装 include/linux/pm_runtime.h [#r84ca9c3] #ifdef CONFIG_PM_RUNTIME (...snip...) extern int __pm_runtime_get(struct device *dev, bool sync); (...snip...) #else /* !CONFIG_PM_RUNTIME */ (...snip...) static inline int pm_runtime_resume(struct device *dev) { return 0; } -何もしない、常に 0 を返す。 (...snip...) #endif /* !CONFIG_PM_RUNTIME */ *コメント [#j1aca22c]