Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jan 2003 09:02:33 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        freebsd-current@freebsd.org
Subject:   which is preferred: vm_page_hold() or vm_map_wire()?
Message-ID:  <15913.24185.962327.437269@grasshopper.cs.duke.edu>

next in thread | raw e-mail | index | archive | help

I'm re-examining some of our driver code where we need to wire down a
portion of a user's address space for DMA for os-bypass networking.
We currently do vm_map_wire().  This is nice, as it presents a simple
interface, but I think its pretty high overhead the way our driver
calls it (a page at a time).

Since this should be a short-lived mapping, I assume we could also get
away with using vm_page_hold() like vmapbuf() does?  Note that I don't
want all of vmapbuf, as I don't want to waste kva space by mapping the
page into the kernel... I just need to dma it, not read or write it.

Which is the preferred api for somebody like me?

Thanks,

Drew

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15913.24185.962327.437269>