inline functions in kernel increasing why?

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

 



hello,
        I have some inline declaration questions.
 1)why new kernel 2.4.30 has intermediate function of __ instead of
direct calling it?
int ip_finish_output(struct sk_buff *skb)
{
	return __ip_finish_output(skb);
}
 and also __ip_finish_output is written as
static __inline__ int __ip_finish_output(struct sk_buff *skb)
 what are these changes in kernel? Does they are for optimization?

2)Also ip_output is calling __ip_finish_output instead ip_finish_output why?
3) what is difference between declaring following 2 inline functions
static inline int ip_finish_output2(struct sk_buff *skb)
and 
static __inline__ int __ip_finish_output(struct sk_buff *skb)
please correct me.
regards,
rahul.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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