Skip to contentSkip to conversation

Basic question

DISCUSSION nejhdeh 2 participants 2 messages Jul 16, 2002

lore
Share & tools
lore

nejhdeh

author
#0 lore raw

I end up getting all the required source codes from kernel-source-2.4.18-5.RPM

Quoted 3 lines

Now, it appears for me to use the kernel routines such as enable_irq

(defined

Quoted 1 line

in (/usr/src/linux-2.4.18-5/arch/i386/kernel/irq.c) I have to make the

entire

Quoted 11 lines

kernel.o, since there are a lot of dependencies.

Do I need to go this far??

What is a simpler way to use these routines (in irq.c) with my application??

How do I link this module (i.e irq.o) with my application?? I get heaps of unresoleved errors.

#1 lore raw
Quoted 18 lines · nejhdeh

I end up getting all the required source codes from kernel-source-2.4.18-5.RPM

Quoted 3 lines

Now, it appears for me to use the kernel routines such as enable_irq

(defined

Quoted 1 line

in (/usr/src/linux-2.4.18-5/arch/i386/kernel/irq.c) I have to make the

entire

Quoted 11 lines

kernel.o, since there are a lot of dependencies.

Do I need to go this far??

What is a simpler way to use these routines (in irq.c) with my application??

How do I link this module (i.e irq.o) with my application?? I get heaps of unresoleved errors.

You can't link kernel sources against applications and expect that it just works. The kernel is a separate piece of software, all kernel communication with the kernel goes through the file IO and system call APIs.

Erik

Signature · 3 lines
J.A.K. (Erik) Mouw
Email: [email protected]
WWW: http://www-ict.its.tudelft.nl/~erik/