summaryrefslogtreecommitdiffstats
path: root/sys/uvm/uvm_pmemrange.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2010-07-01 21:27:39 +0000
committerart <art@openbsd.org>2010-07-01 21:27:39 +0000
commit9b40e6e1d4a2183f03fb341bc3972233e67fb400 (patch)
treef3d8b271e3f984d14dbcc9b4d1635dd34b6042f8 /sys/uvm/uvm_pmemrange.c
parentFix memory leak by adding a missing free(lsa). (diff)
downloadwireguard-openbsd-9b40e6e1d4a2183f03fb341bc3972233e67fb400.tar.xz
wireguard-openbsd-9b40e6e1d4a2183f03fb341bc3972233e67fb400.zip
Implement vs{,un}lock_device and use it for physio.
Just like normal vs{,un}lock, but in case the pages we get are not dma accessible, we bounce them, if they are dma acessible, the functions behave exactly like normal vslock. The plan for the future is to have fault_wire allocate dma acessible pages so that we don't need to bounce (especially in cases where the same buffer is reused for physio over and over again), but for now, keep it as simple as possible.
Diffstat (limited to 'sys/uvm/uvm_pmemrange.c')
0 files changed, 0 insertions, 0 deletions