IRQ & module Problems
Hello! I have some questions about keyboard driver, where I found a source of driver and can I change it? If I want to do with IRQ, like enable_irq(),disable_irq() and that kind of functions, which libraries should I use.If I compile program with function enable_irq(). What is a difference between /usr/include and
/usr/i386-glibc21-linux . And if I want to compile the example below send me an error in libraries.
#define MODULE
#include <linux/module.h>
int init_module (void) /* Loads a module in the kernel */
{
printk("Hello kernel n");
return 0;
}
void cleanup_module(void) /* Removes module from kernel */
{
printk("GoodBye Kerneln");
}
root@eagle module]# gcc -c 1.c
1.c:17:2: warning: no newline at end of file
In file included from 1.c:4:
/usr/include/linux/module.h:60: parse error before `atomic_t'
/usr/include/linux/module.h:60: warning: no semicolon at end of struct or union
/usr/include/linux/module.h:60: warning: no semicolon at end of struct or union
/usr/include/linux/module.h:62: parse error before `}'
/usr/include/linux/module.h:63: warning: data definition has no type or storage class
/usr/include/linux/module.h:92: parse error before `}'
[root@eagle module]#
|