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

Method MatchStatic

src/device/virtio/virtio_driver.cpp:16–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include "virtio/transport/mmio.hpp"
15
16auto VirtioDriver::MatchStatic([[maybe_unused]] DeviceNode& node) -> bool {
17 return node.mmio_base != 0 && node.mmio_size != 0;
18}
19
20auto VirtioDriver::Probe(DeviceNode& node) -> Expected<void> {
21 if (node.mmio_size == 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected