From: "B.Vinai Kumar" <vinaibangala2001@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: How to get the address of the page structure from the given virtual address?
Date: Tue, 11 Aug 2009 20:01:41 +0530 [thread overview]
Message-ID: <f74c922b0908110731ifcf162ai8770f07d7ca537d3@mail.gmail.com> (raw)
Hi List
1) I allocated 8 pages using alloc_pages(GFP_KERNEL, 3). This function
returns the pointer to the first page's page structure.
How can I get the page structure address of the remaining 7 pages?
2) There is a function page_address() which takes the page structure
as an argument and returns the virtual address of the page
that is pointed by that page structure. Is there any method which
retrives the address of the page structure?
Thanks,
Vinai.
next reply other threads:[~2009-08-11 14:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-11 14:31 B.Vinai Kumar [this message]
2009-08-11 15:05 ` Jonathan Corbet
2009-08-12 4:58 ` B.Vinai Kumar
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=f74c922b0908110731ifcf162ai8770f07d7ca537d3@mail.gmail.com \
--to=vinaibangala2001@gmail.com \
--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®