Returns true when Linux AIO is supported on the running kernel. The result is cached so the probe runs at most once per process.
()
| 67 | /// |
| 68 | /// The result is cached so the probe runs at most once per process. |
| 69 | fn 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 | /// |