MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / ToDmaRegion

Method ToDmaRegion

src/io_buffer.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54auto IoBuffer::IsValid() const -> bool { return data_ != nullptr; }
55
56auto IoBuffer::ToDmaRegion(VirtToPhysFunc v2p) const -> DmaRegion {
57 return DmaRegion{
58 .virt = data_,
59 .phys = v2p(reinterpret_cast<uintptr_t>(data_)),
60 .size = size_,
61 };
62}

Callers 1

ProbeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected