The below code snippet shows the code for initializing the work queue separately by using INIT_WORK.
The output of the kernel module is placed below
The below code snippet shows the code for initializing the work queue separately by using INIT_WORK.
The output of the kernel module is placed below
Pingback: Workqueue code example using DECLARE_WORK Macro | Hitch Hiker's Guide to Learning