* alloc_pages and struct page *
@ 2005-04-19 10:50 Olivier Galibert
2005-04-19 12:06 ` Catalin Marinas
0 siblings, 1 reply; 2+ messages in thread
From: Olivier Galibert @ 2005-04-19 10:50 UTC (permalink / raw)
To: Hack inc.
If I get a struct page * from a call to alloc_pages with a non-zero
order, how do I get the struct page * of te following pages from the
same allocation in order to use them in calls to tcp_sendpage?
If there a documentation somewhere whcih would answer this kind of
questions? Couldn't find anything pertinent in Documentation/*.
OG.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: alloc_pages and struct page *
2005-04-19 10:50 alloc_pages and struct page * Olivier Galibert
@ 2005-04-19 12:06 ` Catalin Marinas
0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2005-04-19 12:06 UTC (permalink / raw)
To: Olivier Galibert; +Cc: Hack inc.
Olivier Galibert <galibert@pobox.com> wrote:
> If I get a struct page * from a call to alloc_pages with a non-zero
> order, how do I get the struct page * of te following pages from the
> same allocation in order to use them in calls to tcp_sendpage?
page++;
The page structures are kept in an array, "mem_map" if
CONFIG_DISCONTIGMEM is not set or something like
"discontig_node_data[nid].node_mem_map" otherwise (this is true for
the ARM architecture, should be similar on the others). "alloc_pages"
allocates a contiguous range of pages from an array (and doesn't cross
a node boundary).
--
Catalin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-19 12:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-19 10:50 alloc_pages and struct page * Olivier Galibert
2005-04-19 12:06 ` Catalin Marinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox