Hi Mahaveer,

On Thu, Sep 18, 2008 at 3:59 PM, mahaveer darade <[EMAIL PROTECTED]>wrote:

>
>
> On Thu, Sep 18, 2008 at 5:41 AM, Balraj Dahiya <[EMAIL PROTECTED]> 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.
>

What do you mean by its "not mandatory" ? Well, the compiler has to follow
the standards, if specified. And "inline" keyword is stated quite clearly
everywhere. And it has a very trivial meaning.

Can you tell me any scenario, where you would mark a function to be inline
and not expect to be patched into the caller.


>
>
>>
>> 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.
>

Do you intend to say that pointers to static inline functions won't match ?
And the behavior is unpredictable ?


>
>
>>
>> Can you please explain it to me?
>>
>> Thanks,
>> Raj
>>
>>
>
>
> --
> ---------------------------
> Thanks & Regards,
> Mahaveer Darade
> [EMAIL PROTECTED]
> Mobile - 9970365267
>
>
> --- Dream it , Code it.
>
>


-- 
Regards,
Sandeep.






"To learn is to change. Education is a process that changes the learner."

Reply via email to