[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About header files in /usr/src/linux/include/linux
On Fri, Dec 03, 2004 at 09:29:46AM +1100, Aboo Valappil wrote:
>
> Hi,
>
> What is the reason some header files ( eg : fs.h ) has got both function
> declarions and function definitions ?
> Is'nt it against convenstion ?
>
> Aboo
Hi,
The functions which are define int the .h (like in include/linux/fs.h)
are inline. This means that when this function is called, the entire
code of the function is added to programm. Sometimes, for little
fuunction, it's better. It's for code optimization.
>
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/