LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-28-2003, 12:16 AM   #1
hegel
LQ Newbie
 
Registered: Sep 2003
Distribution: slackware 9.0
Posts: 5

Rep: Reputation: 0
Questions about how to read OS source code


Can you give me some suggestions about studying OS source code?Thank you !

When I found that I couldn't understand so many mathematical conceptions as well as couldn't get a correct and useful method to get through so many lines of os source code (I'm studying the minix source ,for i think it maybe a little bit simple )but I really unable to get into it at all.Just like get lost in the sea.

Can you give me some suggestions about how to get well with code?

And can you tell me some experience of yours ?

I heard that if you want to read OS source you should programming as many as you can,Does this true?

thank you again.
 
Old 10-28-2003, 01:18 AM   #2
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
well it's good if you have a target to look at it. i.e. your hacking the protocol stack so you'll prolly spend most of your time in net/core/ipv4/* . what i usually do is just use grep a lot. you'll find that you need to see what members are in some structure or read some function definition, you just use the command option in vi :!grep bla /path/to/bla . that's how i usually go about it. i wouldn't advise just "reading" aimlessly. a great place to start reading is /usr/src/linux/Documentation, especialy the CodingStyle file.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 01:48 PM
start to read the source code and have questions pipehappy Linux - Newbie 1 01-05-2005 03:19 AM
some questions encounted during reading the source code qqrilxk Linux - Security 1 12-08-2004 10:23 PM
source code for read() function ? Mike Davies Linux - Software 1 11-03-2004 03:10 PM
code to read block from the file suchi_s Programming 5 09-08-2004 07:21 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration