Re: mm_init() functions in kernel code

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

 



On Tue, May 17, 2011 at 6:43 PM, Vikram Narayanan <vikram186@xxxxxxxxx> wrote:
> Hi,
>
> I saw two mm_init functions in the kernel source code.
> 1) init/main.c    (http://lxr.linux.no/#linux+v2.6.38/init/main.c#L530)
> 2) kernel/fork.c (http://lxr.linux.no/#linux+v2.6.38/kernel/fork.c#L482)
>
> Are the above functions go inside a single binary? How this doesn't
> produce a redefinition error?
>
> Thanks,
> Vikram
Both of these define mm_init as static so they aren't visible outside
the source file that has them.  Plus they don't use the EXPORT_SYMBOL
macro to indicate that it can be called from elsewhere in the kernel.
There is another mm_init function in drivers/block/umem.c as well
which is also static.

Cheers,
Greg

_______________________________________________
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