From: "Breno" <breno@secforum.com.br>
To: "Kernel List" <linux-kernel@vger.kernel.org>
Subject: Problem getting all vmas
Date: Sun, 7 Sep 2003 11:55:01 -0300 [thread overview]
Message-ID: <000d01c37550$04b65ec0$6edea7c8@bsb.virtua.com.br> (raw)
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
reply other threads:[~2003-08-07 14:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000d01c37550$04b65ec0$6edea7c8@bsb.virtua.com.br' \
--to=breno@secforum.com.br \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®