On Thu, Sep 18, 2008 at 5:41 AM, Balraj Dahiya <dahbal76@xxxxxxxxx> wrote:
its just a suggestion( not mandatory ) to compiler to substitute code of function into caller.
there are plenty of scenarios to think of its usage.
no its not mandatory. but if you do then you have to take care of couple of thinks like if u take pointer to static inline functions then they won't match & code is going to behave differently.
Hi All,Why we use Inline Functions in Linux Kernel? What is the importance of Inline functions and where we should use them?
its just a suggestion( not mandatory ) to compiler to substitute code of function into caller.
there are plenty of scenarios to think of its usage.
Is it mandotary to put "static" before inline which declaring the inline function?
no its not mandatory. but if you do then you have to take care of couple of thinks like if u take pointer to static inline functions then they won't match & code is going to behave differently.
Can you please explain it to me?Thanks,Raj
--
---------------------------
Thanks & Regards,
Mahaveer Darade
mah.darade@xxxxxxxxx
Mobile - 9970365267
--- Dream it , Code it.