mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: galibert@pobox.com (Olivier Galibert)
Cc: linux-kernel@vger.kernel.org (Hack inc .)
Subject: Re: Allocating non-contigious memory
Date: Wed, 27 Jun 2001 19:52:47 +0100 (BST)	[thread overview]
Message-ID: <E15FKQh-0005ef-00@the-village.bc.nu> (raw)
In-Reply-To: <20010627144239.A2265@zalem.puupuu.org> from "Olivier Galibert" at Jun 27, 2001 02:42:39 PM

> What is the Right Way[tm] as of 2.4.6 to allocate 16Mb as 4K pages and
> get the pci bus address for each page?  Bonus points is they're
> virtually contiguous, but that's not necessary.  IIRC, the old
> vmalloc-then-walk-the-pagetables trick is considered out-of-bounds
> nowadays.

If you want it virtually contiguous then copy the code from bttv that 
out-of-bounds or otherwise is now found in about 8 drivers in the kernel.

If you don't need that then you can map user space and use kiovecs - which
is nicer for many things


  reply	other threads:[~2001-06-27 18:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-27 18:42 Olivier Galibert
2001-06-27 18:52 ` Alan Cox [this message]
2001-06-27 21:31   ` Riley Williams
2001-06-27 22:01     ` 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=E15FKQh-0005ef-00@the-village.bc.nu \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=galibert@pobox.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®