Inline functions

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

 




Hi,

I am writing a device driver. I have a questions to ask:
a) inline functions in .c file --> Will it be correct to have inline function declared in .c file? I am speaking with respect to device driver meant for the linux kernel. I have a function, which is quite short in terms of function body and it is exported from one module to another. Do you think, I can declare it as an inline in the .c file or I need to move this function declaration along with the EXPORT_SYMBOL line to a .h file just because it is inlined?
For ex -> something like this?
inline void hello_world( )
{............
return;
}
EXPORT_SYMBOL(hello_world);

Get your own FREE website, FREE domain & FREE mobile app with Company email.  
Know More >
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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