Re: when and where sock_init() excutes in linux-2.6.35.4.

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

 



On Tue, Sep 14, 2010 at 09:24:43AM +0800, linuxkernel.xqiang wrote:
>Hi all!
>I have a question about when and where sock_init() excutes in linux-2.6.35.4.
>As I know, when in the old version such as linux-2.6.16, it looks like as fllow:
>
...
>now in linux-2.6.35.4/arch/, there is no i386/, so i reached to x86/kernel/vmlinux.lds.S
>but in this file, i found no information about section .initcall1.init ~ .initcall7.init
>

Since sock_init() is put into .initcall1.init section which is
between __initcall_start and __initcall_end, it is called in
do_initcalls().

Those .initcall* sections are defined by INITCALLS macro which is defined
in include/asm-generic/vmlinux.lds.h.
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux