Re: About header files in /usr/src/linux/include/linux

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

 



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/




[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