Writing a module having multiple files

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

 



Hi

I am writing a module which consists of multiple files and I have
written makefile accordingly i.e. to get a single .ko out of all these
files. I have 3 files a.c, b.c and c.c
and I have defined a function func() in file a.c and I want to use it
in b.c, do I need to export it using EXPORT_SYMBOL or if I dont make
it static it will work well since ultimately all these files are going
to make a single .ko. I know that, if I make it static I need to
export it, and I know that we should make these functions static.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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