public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* page_address not working
@ 2009-02-25  0:12 sidc7
  2009-02-25 23:27 ` Jiri Slaby
  0 siblings, 1 reply; 2+ messages in thread
From: sidc7 @ 2009-02-25  0:12 UTC (permalink / raw)
  To: linux-kernel


I am using the function page_address to get the virtual address of a page
using its pointer. I am using kernel 2.6.24 and page_address has been
exported. However, when I make a call to page_address in my kernel module,
it does not allow me to use it, saying, "Implict declaration of
page_address".

Is there any other way, I can get the virtual address of a page from a
pointer to its structure

Thanks
SC
-- 
View this message in context: http://www.nabble.com/page_address-not-working-tp22193693p22193693.html
Sent from the linux-kernel mailing list archive at Nabble.com.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: page_address not working
  2009-02-25  0:12 page_address not working sidc7
@ 2009-02-25 23:27 ` Jiri Slaby
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Slaby @ 2009-02-25 23:27 UTC (permalink / raw)
  To: sidc7; +Cc: linux-kernel

On 25.2.2009 01:12, sidc7 wrote:
> "Implict declaration of page_address".

Do you have
#include <linux/mm.h>
in there?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-25 23:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-25  0:12 page_address not working sidc7
2009-02-25 23:27 ` Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox