<div dir="ltr">Hi,<br><div><br>On Sun, Jan 13, 2013 at 11:29 AM, horseriver <<a href="mailto:horserivers@gmail.com">horserivers@gmail.com</a>> wrote:<br>><br>> hi:<br>><br>> In kernel code . some function is defined by __attribute__((__section__(".initcall" level ".init")))<br>
><br>> what does this do ?<br><br></div><div>It puts the address of the function in a linker section named .initcallX.init where X is replaced by the level.<br><br></div><div>These functions are called in order to initialize various subsystems and drivers during kernel bootup.<br>
</div><div><br>--<br>Dave Hylands<br>Shuswap, BC, Canada<br><a href="http://www.davehylands.com">http://www.davehylands.com</a></div></div>