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

link question

From: Mulyadi Santosa <hidden>
Date: 2011-06-29 17:46:19

Hi...

On Thu, Jun 30, 2011 at 00:36, 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?.
you need to look closer....for example include/linux/mm.h. There you
will see definition of constants and functions used for memory
management.

So, what library here means IMHO are group of headers that contains
the needed functions/definitions by themselves. Linking? I think it's
better named as "including"...indeed there are linking process during
kernel build, but that is just a way to build final image using
several objects which originated from the practice of refactoring etc.

kindly CMIIW people...

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help