lkmpg
lkmpg copied to clipboard
bottomhalf.c
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