what does this do ?

horseriver horserivers at gmail.com
Sun Jan 13 15:09:09 EST 2013


On Sun, Jan 13, 2013 at 09:27:45PM -0800, Dave Hylands wrote:
> Hi,
> 
> On Sun, Jan 13, 2013 at 11:29 AM, horseriver <horserivers at gmail.com> wrote:
> >
> > hi:
> >
> >   In kernel code . some function is defined  by
>  __attribute__((__section__(".initcall" level ".init")))
> >
> >   what does this do ?
> 
> It puts the address of the function in a linker section named
> .initcallX.init where X is replaced by the level.

   why ".initcall" and level do not connect  together with ## ?
   As I know , precompiler use ## to connect two strings


  Thanks!   
> 
> These functions are called in order to initialize various subsystems and
> drivers during kernel bootup.
> 
> --
> Dave Hylands
> Shuswap, BC, Canada
> http://www.davehylands.com



More information about the Kernelnewbies mailing list