C inline functions working
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. |
All times are GMT -5. The time now is 05:05 PM. |