gpt4 book ai didi

linux - pm_runtime_put_sync() 函数的功能是什么?

转载 作者:太空宇宙 更新时间:2023-11-04 04:01:28 25 4
gpt4 key购买 nike

函数pm_runtime_put_sync()spi-omap2-mcspi.c 中被调用

有人可以解释一下这个函数调用实际上做了什么吗?谢谢!

最佳答案

它在内部调用 __pm_runtime_idle(dev, RPM_GET_PUT) ,记录为

int __pm_runtime_idle(struct device *dev, int rpmflags)
Entry point for runtime idle operations.
* @dev: Device to send idle notification for.
* @rpmflags: Flag bits.
* * If the RPM_GET_PUT flag is set, decrement the device's usage count and
* return immediately if it is larger than zero. Then carry out an idle
* notification, either synchronous or asynchronous.
*
* This routine may be called in atomic context if the RPM_ASYNC flag is set,
* or if pm_runtime_irq_safe() has been called.

这里是sourceDocumentation

关于linux - pm_runtime_put_sync() 函数的功能是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22781666/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com