lkml.org 
[lkml]   [2002]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.024 / U:1.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site