LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2008, 03:55 AM   #1
me_too
LQ Newbie
 
Registered: Jan 2008
Location: Venus
Posts: 7

Rep: Reputation: 0
Question How to make alteration on GRUB source code


Q1. need to record which OS user select.
Q2. need to implement write function while current Grub have provided read function.
I guess maybe :
To meet Q1, the function
Builtins.c->root_func(char *arg, int flags) needs to be modified;
To meet Q2, I should add one unsighed long (*read_func)(char* buf,unsighed long len) member function in the Filesys.h->struct fsys_entry{} refering to the member function unsighed long (*read_func)(char* buf,unsighed long len)in the struct and implement it.

Though I had read the grub.info for times, I still feel these hints are not sufficient to guide me coding, to give a whole comprehension to the framework.
I am not sure what code and where is the exactly place should my attention be
paid to. for example : run_menu() function has 6 input parameters, how they are
prepaired , what they represent for, and what's the effect as it's the last statement in cmain()?
If only there were some guides.

Last edited by me_too; 05-04-2008 at 10:02 PM.
 
Old 04-29-2008, 09:17 PM   #2
Drone4four
Member
 
Registered: Feb 2006
Distribution: Ubuntu, Slackware. Gentoo
Posts: 199

Rep: Reputation: 30
Your two Qs are unclear to me. Why would you want to modify the source code exactly? What are you trying to do?
 
  


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
best webiste to get source code for grub/ssh rienqunuser Linux - Newbie 3 02-19-2008 04:42 PM
get, modify and compiling source code peji Linux - Newbie 6 03-22-2007 08:16 AM
Any document to understand e1000 network device driver source code ahm_irf Linux - Networking 1 02-14-2007 02:37 AM
which file to edit to modify source code in red hat 9.0 vinaymudgil007 Linux - Software 1 11-17-2005 07:38 AM
help to understand this code cranium2004 Programming 1 03-21-2005 12:35 PM


All times are GMT -5. The time now is 10:36 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration