linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem getting all vmas
@ 2003-09-07 14:55 Breno
  0 siblings, 0 replies; only message in thread
From: Breno @ 2003-09-07 14:55 UTC (permalink / raw)
  To: Kernel List

Hi , i tryed to get all vmas with this piece of code :


....
struct task_struct *task = find_task_by_pid();
struct vm_area_struct *vma,*next;

vma = task->mm->mmap;

while(vma)
{
     next = vma->vm_next;
    my_function();
    ....
    vma = next;
 }

but when i do insmod procm.o ... the program seems to enter in an infinite
loop.
Am I getting all vmas with this while() ?

thanks
Breno


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-07 14:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-07 14:55 Problem getting all vmas Breno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).