Thread (6 messages) 6 messages, 5 authors, 2011-06-29

link question

From: Greg Freemyer <hidden>
Date: 2011-06-29 21:10:53

On Wed, Jun 29, 2011 at 1:36 PM, Littlefield, Tyler [off-list ref] 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, but you don't actually have to link to the kernel or any
sort of library. How does this work? How does compiled code call the
function if it doesn't link to it in some way or another?.
Is this a question about userspace apps or kernel modules?

Userspace apps link to glibc which in turn has assembly instructions
embedded to call into the kernel.

Kernel Modules get a different kind of magic, but I'm not sure of those details.

Greg
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help