Skip to content
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

Open
trulykyle opened this issue Mar 16, 2023 · 1 comment
Open

bottomhalf.c #191

trulykyle opened this issue Mar 16, 2023 · 1 comment
Assignees

Comments

@trulykyle
Copy link

trulykyle commented Mar 16, 2023

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

@linD026
Copy link
Collaborator

linD026 commented Mar 17, 2023

Hi @trulykyle ,

You're right. We cannot sleep in the tasklet (atomic mode)[1] [2].
I will fix this recently.
Thanks for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants