LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 11-24-2009, 07:07 AM   #1
ReshmiS
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
Why __early_initcall_end _initcall_end are declared are array ?


Hi all,
I could find the order of calling of modules from kernal_init() -> do_basic_setup() -> do_initcalls(). Here it traverse through a array of __early_initcall_end till __initcall_end.

My questions are
1. The expansion of module_init() macro says to put the .text section of the function called by module_init into specific region in the memory, This initializations routines will be called in the sequence by the INITCALL ( include/asm-generic/vmlinux.lds.h) . It looks like the vmlinux.lds (arch/mips/kernel/vmlinux.lds.S) put the __initcall_start and __initcall_end before and after the INITCALLS. Is my understating correct.

2. Why __early_initcall_end _initcall_end are declared are array, it can be a pointer instead ?

Thanks in advance,
Reshmi S
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Qt : ‘Qchar’ has not been declared threaderslash Programming 7 05-06-2009 01:29 PM
N/w card declared as not existing prabhatsoni Linux - Software 0 09-29-2007 09:44 AM
LXer: War declared LXer Syndicated Linux News 0 02-16-2006 10:31 AM
Where is 'errno' declared? How can I use it in my program? jdruin Programming 2 11-24-2004 07:45 AM
errno.h, but it IS declared...... privateprimate Linux - Software 3 09-08-2004 08:37 PM


All times are GMT -5. The time now is 08:46 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration