Hi,
On Sun, Jan 13, 2013 at 11:29 AM, horseriver <horserivers@xxxxxxxxx> wrote:
>
> hi:
>
> In kernel code . some function is defined by __attribute__((__section__(".initcall" level ".init")))
>
> what does this do ?
On Sun, Jan 13, 2013 at 11:29 AM, horseriver <horserivers@xxxxxxxxx> 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.
These functions are called in order to initialize various subsystems and drivers during kernel bootup.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies