Sunday, 18 August 2013

Simple Device Driver not working

Simple Device Driver not working

I'm writing a basic device driver with code
#define MODULE
#include<linux/module.h>
int init_module(void){
printk("<1>Hello World!!!\n");
return 0;
}
void cleanup_module(void){
printk("<1>Goodbye cruel world");
}
In Ubuntu, It is giving an error:
linux/module.h no such file or directory.

No comments:

Post a Comment