Re: Inline Functions ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thu, Sep 18, 2008 at 5:41 AM, Balraj Dahiya <dahbal76@xxxxxxxxx> wrote:
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.


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux