link question
Guillaume Knispel
gknispel at proformatique.com
Wed Jun 29 16:05:45 EDT 2011
On Wed, 29 Jun 2011 11:40:40 -0700
Greg KH <greg at kroah.com> wrote:
> On Wed, Jun 29, 2011 at 11:36:30AM -0600, Littlefield, Tyler wrote:
> > I have a quick question; this is something I haven't been able to figure
> > out. By using the kernel headers you can call functions that are defined
> > in the kernel,
>
> >From userspace? No you can't. You need to use glibc or something else.
>
> The kernel is not a library, the only way to interact with it from
> userspace is by making system calls. You can use glibc or some libc to
> make those system calls for you through other functions, or you can call
> them "raw" if you really know what you are doing.
>
> Hope this helps,
>
> greg k-h
Or maybe he was actually talking about kernel modules and in this case
the linking is done by the kernel itself, at runtime.
--
Guillaume Knispel
More information about the Kernelnewbies
mailing list