上电和下电时系统调用 [英] System Calls in Powerup and Powerdown
问题描述
我阅读了文档,上面写着"此模式下不允许进行大多数函数调用。通常,电源处理程序功能是
不允许进行系统调用。 " 。是否有任何列表不允许系统调用。我们可以从Powerup调用DeviceIoControl并关闭电源吗?在我们的BSP中,GPIO和I2C是流接口驱动程序。如果我们必须设置或清除GPIO引脚
,我们需要将DeviceIoControl调用到GPIO驱动程序。当我们调用GPIO驱动程序IOCTL时,不会发现以下错误。如果我们将IOCTL称为I2C驱动程序,我们会看到这个吗?在I2C驱动程序中,我们有CeOpenCallerBuffer等... API的。
I read the documentation and it says "Most function calls are not allowed in this mode. In general, the power handler functions are not allowed to make system calls. " . Is there any list which system calls are not allowed. Can we call DeviceIoControl from Powerup and powerdown?. In our BSP GPIO and I2C are stream interface drivers. If we have to set or clear a GPIO pin we need to call DeviceIoControl to GPIO Driver. When we call GPIO driver IOCTL then the below error is not observed. If we call a IOCTL to I2C driver we are seeing this? In I2C Driver we have CeOpenCallerBuffer and etc...API's.
ERROR : Power Handler function yield to low priority thread.
问候,
GSR
推荐答案
不要再使用powerdown和powerup处理程序了。实现
电源管理IOCTL 以获得更大的灵活性。
Don't use the powerdown and powerup handlers anymore. Implement the Power Management IOCTLs for much greater flexibility.
这篇关于上电和下电时系统调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!