Re: struct pt_regs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Karthik M (k_mohanas@yahoo.com) wrote:
> 
> --- Christophe Lucas <c.lucas@ifrance.com> wrote:
> > 
> > struct pt_regs { } ; is defined in asm-i386/ptrace.h
> > 
> > see : http://lxr.linux.no/source/?v=2.6.5
> > 
> > 
> 
> Thanks Christophe, i came across the struct
> declaration before hand itself. The problem that i am
> facing is what goes into the registers. I mean into
> which register does the name of the program go ?? into
> which register do the arguments for the system call
> get loaded ? i need some help on these kind of things

Sorry for not responding faster, but it was holiday in france :-)
You should see in : arch/i386/kernel/process.c and kernel_thread() 

HTH
-- 
Amicalement

Christophe 

* GNU/Linux & UNIX developer and network administrator
* Membre RotomaLUG (http://www.rotomalug.org)
* Registered User #271267
* Email: c.lucas@ifrance.com
* Web Site: http://odie.mcom.fr/~clucas/

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux