mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 20:14:27 +01:00
work_from_work: flush_workqueue back in
This commit is contained in:
@@ -3,6 +3,9 @@ Usage:
|
|||||||
|
|
||||||
/pci.sh
|
/pci.sh
|
||||||
|
|
||||||
|
The standard is non-free, obviously: https://pcisig.com/specifications
|
||||||
|
but Google gives several illegal PDF hits :-)
|
||||||
|
|
||||||
Like every other hardware, we could interact with PCI on x86
|
Like every other hardware, we could interact with PCI on x86
|
||||||
using only IO instructions and memory operations.
|
using only IO instructions and memory operations.
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ static int myinit(void)
|
|||||||
static void myexit(void)
|
static void myexit(void)
|
||||||
{
|
{
|
||||||
cancel_delayed_work(&next_work);
|
cancel_delayed_work(&next_work);
|
||||||
|
flush_workqueue(queue);
|
||||||
destroy_workqueue(queue);
|
destroy_workqueue(queue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user