MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / aio_supported

Function aio_supported

block/src/factory.rs:69–72  ·  view source on GitHub ↗

Returns true when Linux AIO is supported on the running kernel. The result is cached so the probe runs at most once per process.

()

Source from the content-addressed store, hash-verified

67///
68/// The result is cached so the probe runs at most once per process.
69fn aio_supported() -> bool {
70 static SUPPORTED: OnceLock<bool> = OnceLock::new();
71 *SUPPORTED.get_or_init(block_aio_is_supported)
72}
73
74/// Open a disk image and construct the appropriate async backend.
75///

Callers 1

open_rawFunction · 0.85

Calls 1

newFunction · 0.85

Tested by

no test coverage detected