#include #include #include #include MODULE_LICENSE("GPL"); static struct work_struct work; static void WorkQueueFunction( void *data ) { printk("WorkQueueFunction\n"); } static DECLARE_WORK( work, WorkQueueFunction, NULL ); static int __init ModInit(void) { if( schedule_work( &work )==0 ) printk("schedule_work not successful ...\n"); else printk("schedule_work successful ...\n"); return 0; } static void __exit ModExit(void) { flush_scheduled_work(); } module_init( ModInit ); module_exit( ModExit );