LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-17-2005, 08:49 AM   #1
linetnew
Member
 
Registered: Apr 2005
Location: India
Posts: 32

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
g++: inline functions can cause an undefined reference when linking? R00ts Programming 5 06-21-2005 03:13 AM
Blocking functions use in PHP not working... jon_k Linux - Software 0 08-06-2004 05:37 PM
XML functions not working with PHP r3n Linux - Software 0 05-28-2003 02:15 PM
C++ inline functions Slickfty2 Programming 12 04-23-2003 07:13 PM
pointers to functions/member functions champ Programming 2 03-28-2003 06:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration