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 09:02 PM.
|