mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stevie-O <oliver@klozoff.com>
To: linux-kernel@vger.kernel.org
Subject: vmalloc and DMA
Date: Thu, 18 Sep 2003 21:54:49 -0400	[thread overview]
Message-ID: <3F6A61E9.1060407@klozoff.com> (raw)

I need to treat a large number of pages (about 128) as continuous.  However, I 
need to DMA to that memory from a device.  The device has a built-in 
scatter-gather feature, so I don't need to worry about whether the pages are 
physically contiguous.  Looking through LXR revealed a  function called 
vmalloc_32.  My questions are these:

(1) Is vmalloc_32 going to stick around for a while?
(2) Is it appropriate to vmalloc_32(512<<10) and then grab the underlying 
addresses for DMA?
(3) If it *is* appropriate, what's the proper way to get to those underlying 
addresses? I saw a virt_to_page macro somewhere...


-- 
- Stevie-O

Real Programmers use COPY CON PROGRAM.EXE



             reply	other threads:[~2003-09-19  1:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-19  1:54 Stevie-O [this message]
2003-09-19  9:05 ` Alan Cox

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=3F6A61E9.1060407@klozoff.com \
    --to=oliver@klozoff.com \
    --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®