lkml.org 
[lkml]   [1999]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: initfunc
Date
From: wu_yb <wu_yb@263.net>
> A newbie question.
> In kernel 2.2.x, many functions are declared as __initfunc(),
> such as __initfunc(void setup_arch(xxx)), does __initfunc()
> means that after this function called, the mem occupied can
> be freed ?
>
> Thanks !!!

Yup.

It puts those functions into the .text.init section. The linker then puts
that section (and .data.init) between the nicely aligned symbols
__init_begin and __init_end. Then free_initmem() frees up all of those
pages, which is called from init() before execve'ing /sbin/init.

Regards,
Brad


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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