Re: struct pt_regs

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

 



Karthik M (k_mohanas@yahoo.com) wrote:
> hi everyone,
> 
> Can anyone guide me how to form a struct pt_regs
> structure by myself. I mean i want to invoke
> do_execve() from a module with my set of arguments.
> The last argument for do_execve() is a struct pt_regs
> structure. So where can i find hints on how to form
> that structure.
> 
> I understand that they are register contents that is
> populated by the kernel when a sys call is made, but i
> just thought of asking abt it.

struct pt_regs { } ; is defined in asm-i386/ptrace.h

see : http://lxr.linux.no/source/?v=2.6.5

Have a good day.
-- 
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