Doubt fork system call

2011-09-07 Thread rohan puri
Every time a fork() is callled in any user-space code, it internally invokes the clone() sys call, But if we linux kernel source code there is a system call by name fork(). So, what i really want to know is that, is there any case in which this syscall is getting called, or this code is

Doubt regarding asmlinkage

2011-09-07 Thread rohan puri
Hi All, asmlinkage is used in front of the each system call prototype. For x86 arch it indicates that the the parameters are on stack instead of the registers and for x86_64 arch the parameters are in registers only. Doubt i have is whats the need for 32-bit intel arch to put parameters on stack

Re: Doubt fork system call

2011-09-07 Thread Darshan Ghumare
On Wed, Sep 7, 2011 at 5:38 PM, rohan puri rohan.pur...@gmail.com wrote: Every time a fork() is callled in any user-space code, it internally invokes the clone() sys call, But if we linux kernel source code there is a system call by name fork(). So, what i really want to know is that, is

Query about custom fedora build process

2011-09-07 Thread Vaibhav Jain
Hi, I am trying to build a custom fedora kernel on a fedora (FC15) machine by reading the article: http://fedoraproject.org/wiki/Building_a_custom_kernel but i am unable to make any progress as my changes are not getting reflected. So I have query about the procedure given in the article. The

Re: Doubt regarding asmlinkage

2011-09-07 Thread Mulyadi Santosa
Hi Rohan :) On Wed, Sep 7, 2011 at 19:09, rohan puri rohan.pur...@gmail.com wrote: Doubt i have is whats the need for 32-bit intel arch to put parameters on stack and not registers in a way similar to x86_64? well, if you need to pass so many parameters, then x86 32 bit registers can not cope

Invitation to connect on LinkedIn

2011-09-07 Thread Anil Unnikrishnan via LinkedIn
LinkedIn Anil Unnikrishnan requested to add you as a connection on LinkedIn: -- Deepak, I'd like to add you to my professional network on LinkedIn. - Anil Accept invitation from Anil Unnikrishnan

Re: Doubt regarding asmlinkage

2011-09-07 Thread rohan puri
Hi Mulyadi, Thanks for the response. I do agree with the issue concerning the no.of registers available are less for 32 bit to that of 64 bit. But even in this case if parameters are more than the no of register for 32 bit, then also before executing int 80h interrupt it stores the parameters in

Re: Doubt fork system call

2011-09-07 Thread rohan puri
Thanks Darshan. I went through that section of the book. I do agree that fork(), vfork() in turn calls the clone() sys call which internally calls do_fork() method. The doubt which I have is there is a sys_fork() method which gets called when fork() system call is invoked. But from userspace is

Re: Doubt fork system call

2011-09-07 Thread Dave Hylands
Hi Rohan, On Wed, Sep 7, 2011 at 8:45 PM, rohan puri rohan.pur...@gmail.com wrote: Thanks Darshan. I went through that section of the book. I do agree that fork(), vfork() in turn calls the clone() sys call which internally calls do_fork() method. The doubt which I have is there is a

Re: Doubt regarding asmlinkage

2011-09-07 Thread Mulyadi Santosa
Hi :) On Thu, Sep 8, 2011 at 10:40, rohan puri rohan.pur...@gmail.com wrote: Hi Mulyadi, Thanks for the response. I do agree with the issue concerning the no.of registers available are less for 32 bit to that of 64 bit. But even in this case if parameters are more than the no of register

Re: Doubt fork system call

2011-09-07 Thread rohan puri
Thanks Dave, it seems a very reasonable answer. Regards, Rohan. On Thu, Sep 8, 2011 at 9:50 AM, Dave Hylands dhyla...@gmail.com wrote: Hi Rohan, On Wed, Sep 7, 2011 at 8:45 PM, rohan puri rohan.pur...@gmail.com wrote: Thanks Darshan. I went through that section of the book. I do agree that

Re: Doubt regarding asmlinkage

2011-09-07 Thread rohan puri
On Thu, Sep 8, 2011 at 9:50 AM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: Hi :) On Thu, Sep 8, 2011 at 10:40, rohan puri rohan.pur...@gmail.com wrote: Hi Mulyadi, Thanks for the response. I do agree with the issue concerning the no.of registers available are less for 32 bit to