Re: How to get the address of the page structure from the given virtual address?

From: B.Vinai Kumar
Date: Wed Aug 12 2009 - 00:58:41 EST


Hi Jon,

Thanks for your response.

I'am writing a kernel socket which calls the tcp_sendpage (modified to
take array of pages) to send the data out
of the kernel socket. I'am allocating 32K of data by calling
alloc_pages and want to send this 32K of data. I modified the
tcp_sendpages to take an array of page structures.

Original version takes pointer to single page structure as an argument.

I will use the above calls to get the address of the page structure
and let you know.

Thanks
Vinai.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/