-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bottomhalf.c #191
Comments
Hi @trulykyle , You're right. We cannot sleep in the tasklet (atomic mode)[1] [2]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Thanks for the nice book.
But in the example bottomhalf.c, it is trying to sleep in the tasklet which will execute from interrupt context. Then the kernel will crash. I think work_queue or delayed_workqueue are the good candidate for sleep/block within the interrupt context.
thanks,
Kyle
The text was updated successfully, but these errors were encountered: