mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "B.Vinai Kumar" <vinaibangala2001@gmail.com>
To: Jonathan Corbet <corbet@lwn.net>, linux-kernel@vger.kernel.org
Subject: Re: How to get the address of the page structure from the given  virtual address?
Date: Wed, 12 Aug 2009 10:28:33 +0530	[thread overview]
Message-ID: <f74c922b0908112158t78039addh826704ceda5d3199@mail.gmail.com> (raw)
In-Reply-To: <20090811090554.79a1b1ac@bike.lwn.net>

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.

      reply	other threads:[~2009-08-12  4:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-11 14:31 B.Vinai Kumar
2009-08-11 15:05 ` Jonathan Corbet
2009-08-12  4:58   ` B.Vinai Kumar [this message]

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=f74c922b0908112158t78039addh826704ceda5d3199@mail.gmail.com \
    --to=vinaibangala2001@gmail.com \
    --cc=corbet@lwn.net \
    --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®