Thread (17 messages) 17 messages, 7 authors, 2012-09-03

How to understand the macro __init?

From: stl <hidden>
Date: 2012-08-16 09:45:41

To be more precise, all the content of the .init section will be freed at
the end of the boot. (see vmlinux.lds.S)
This is done by the function "free_initmem()" which is an architecture
specific function defined in linux-*/arch/<arch>/mm/init.c.

This function frees the memory between the symbols __init_begin and
__init_end (which need to be page-aligned).

During compilation, all symbols defined with __init macro are put in the
.init section.
As explained before, these a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120816/36fa506b/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help