A simple question
I saw a lot of function define as _inline_ in Linux kernel. What does the term _inline_ mean? For the assembly inline statement, _asm_ should do the work.
Thanks for the help!
Ed
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
Quoted 8 lines · ed Wang
I saw a lot of function define as _inline_ in Linux kernel. What does the term _inline_ mean? For the assembly inline statement, _asm_ should do the work.
Thanks for the help!
Ed
Feel free to correct me if I'm wrong...
From my understanding, inline has asolutely nothing to do with assembly. When a function is declared as inline, you're basically telling the compiler that anytime it runs into this function being called, to replace that call with the body of the function (to eliminate the overhead of making the function call). It's great for small, little operations that are done extremely often.
-D.Love