lkml.org 
[lkml]   [2003]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectProblem getting all vmas
Date
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.027 / U:1.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site