Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
any one dealing with interrupt handelers in linux ? i've been trying out a keyboard interrupt handeler ! Kindly share your practical experiences with interrupt handelers in linux !
Last edited by Aquarius_Girl; 10-06-2009 at 03:45 AM.
Reason: wrong title
error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/anisha/Desktop/t2.c: In function ‘irq_handler’:
/home/anisha/Desktop/t2.c:62: error: ‘INIT_WORK’ undeclared (first use in this function)
I got this error message while compiling a user defined keyboard interrupt handler
error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/anisha/Desktop/t2.c: In function ‘irq_handler’:
/home/anisha/Desktop/t2.c:62: error: ‘INIT_WORK’ undeclared (first use in this function)
I got this error message while compiling a user defined keyboard interrupt handler
kernel: 2.6.22.5-31-default i686
kindly help !
Read the error message -- pass 2 arguments, not 3. I would be more specific, but you haven't posted the code that created the error message.
just now I found out the INIT_WORK macro's syntax has changed since kernel 2.6.22.5-31, it now takes just 2 arguements ! Now what about the original data storage so that the work function could retrieve it.
friends,
do you know something regarding function inb(). I read the following in man but couldnt make it out !!
-------------------------------------
This family of functions is used to do low-level port input and output. The out* functions do port output, the in* functions do
port input; the b-suffix functions are byte-width and the w-suffix functions word-width; the _p-suffix functions pause until the
I/O completes.
They are primarily designed for internal kernel use, but can be used from user space.
You compile with -O or -O2 or similar. The functions are defined as inline macros, and will not be substituted in without opti‐
mization enabled, causing unresolved references at link time.
You use ioperm(2) or alternatively iopl(2) to tell the kernel to allow the user space application to access the I/O ports in ques‐
tion. Failure to do this will cause the application to receive a segmentation fault.
-------------------------------------
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.