首页 > 解决方案 > Triggering long running operations from within a Linux ISR

问题描述

I have a situation in which I need to set some GPIOs inside an ISR, then wait for 10s and do something else. Sleeping inside an ISR is not something that should ever be done typically. I'm wondering if there is a built in mechanism in Linux to enqueue a function (from within the ISR) for later processing by the user space worker thread.

标签: linuxsleepisr

解决方案


Linux 设备驱动程序。第 10 章。上半部和下半部。

https://lwn.net/Kernel/LDD3/


推荐阅读