* Oopsing on memory returned by __get_free_pages()
@ 2005-12-25 15:19 Avishay Traeger
0 siblings, 0 replies; only message in thread
From: Avishay Traeger @ 2005-12-25 15:19 UTC (permalink / raw)
To: linux-mm
Hello all,
I am trying to allocate 32KB of memory, and am calling:
buf = (char *)__get_free_pages(GFP_KERNEL, 3);
>From what I see in other kernel code and what I read, I thought that I
could use this chunk of memory as is. However, it is oopsing while
trying to access the second page that was returned. The starting
address for the memory that was returned is 0xf61c0000, and the oops
says "Unable to handle kernel paging request at virtual address
f61c1000".
Do I need to do anything special with the memory before I can use it?
Is it not correct to use it as a big 32KB buffer? I'm sorry if this is
a bit of a noob question, but I have been stuck on the problem for a
couple days and have not found the answer anywhere.
Thanks in advance,
Avishay Traeger
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-25 15:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-25 15:19 Oopsing on memory returned by __get_free_pages() Avishay Traeger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox