LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-21-2002, 05:09 AM   #1
florjan
LQ Newbie
 
Registered: Oct 2002
Location: SI
Distribution: RedHat
Posts: 2

Rep: Reputation: 0
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]#
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kcmshell module, Background&Screensaver Module can't be launch (but works @LookNFeeL) bobbyjoe Linux - Software 0 01-08-2005 04:48 AM
Asterisk wcfxo module irq jacee1234 Linux - Software 0 08-05-2004 12:07 PM
Lost in IRQ && SCC land.... orgcandman Linux - Hardware 1 10-29-2003 11:29 AM
php static module & dynamic module install. eye Linux - Software 0 10-18-2003 12:16 PM
IRQ 9, busmastering & linux Bosah Linux - Hardware 1 02-23-2003 01:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration