On 8/12/05, Thomas Petazzoni <thomas.petazzoni@xxxxxxxx> wrote: > Hi, > > Nguyen Anh Phu wrote: > > > I'm creating a kernel module, in that module, I want to read the value > > of registers (e.g: eax, ebx etc.) of a process base on its process id, > > but it seems that I can't find it on any website. Is there anyone can > > help? > > Do you want to read the registers of the current running thread, or the > saved context (registers) of a not-running thread ? > > Sincerly, > > Thomas > -- > Thomas Petazzoni > thomas.petazzoni@xxxxxxxx > In kernel module, we can use for_each_process(task) to traverse all processes, so, can we read the registers of *any* threads of a process or any processes? -- Phu -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/