| 46 | auto IoBuffer::IsValid() const -> bool { return data_ != nullptr; } |
| 47 | |
| 48 | auto 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected