LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-06-2005, 02:06 PM   #1
LordOfer
LQ Newbie
 
Registered: Jul 2004
Location: Israel
Distribution: Fedora 2
Posts: 19

Rep: Reputation: 0
what's the kernel's main() function?


where in the kernel's source (2.6.11.6) is the first function that gets to run?
 
Old 04-06-2005, 03:02 PM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Slack 10.2, Slack 12, Suse 10.0, DSL 2.2, Xubuntu 7.04
Posts: 920

Rep: Reputation: 30
The kernel itself is initialized by the bootloader itself (which is all assembly, not C). So it's not precisely a main() function...more of a "this is the function which is called first."

I believe that this may help you:

http://www.moses.uklinux.net/patches/lki-1.html#ss1.6
 
  


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
How many prototype of function main in c? ypzhuang Programming 9 12-13-2008 07:53 AM
Array declaration in class or main function??? redhatrosh Programming 4 03-15-2005 02:13 PM
How to Override main function in C joeyBig Programming 5 11-26-2004 02:02 AM
A main can be changed by a function local without passing anything to the function? ananthbv Programming 10 05-04-2004 01:31 PM
in whst file is the main () function for the kernel? wsimmons Programming 2 12-30-2001 12:08 AM


All times are GMT -5. The time now is 11:55 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