Messages in this thread | | | Date | Tue, 16 Jul 2002 14:47:03 +0200 | From | Erik Mouw <> | Subject | Re: Basic question |
| |
On Tue, Jul 16, 2002 at 11:08:39AM +1000, nejhdeh wrote: > I end up getting all the required source codes from kernel-source-2.4.18-5.RPM > > > > > Now, it appears for me to use the kernel routines such as enable_irq > (defined > > in (/usr/src/linux-2.4.18-5/arch/i386/kernel/irq.c) I have to make the > entire > > 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
-- J.A.K. (Erik) Mouw Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |