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

Method ToDmaRegion

tests/unit_test/mocks/io_buffer_mock.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46auto IoBuffer::IsValid() const -> bool { return data_ != nullptr; }
47
48auto IoBuffer::ToDmaRegion(VirtToPhysFunc v2p) const -> DmaRegion {
49 return DmaRegion{
50 .virt = data_,
51 .phys = v2p(reinterpret_cast<uintptr_t>(data_)),
52 .size = size_,
53 };
54}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected