//! This is a Rust implementation of the C null block driver. //! //! Supported features: //! //! - blk-mq interface //! - direct completion //! - block size 4k //! //! The driver is not configurable.
// Use a immediately-called closure as a stable `try` block let disk = /* try */ (|| { let tagset = Arc::pin_init(TagSet::new(1, 256, 1), flags::GFP_KERNEL)?;
#[vtable] impl Operations for NullBlkDevice { #[inline(always)] fn queue_rq(rq: ARef<mq::Request<Self>>, _is_last: bool) -> Result {
mq::Request::end_ok(rq)
.map_err(|_e| kernel::error::code::EIO) // We take no refcounts on the request, so we expect to be able to // end the request. The request reference must be unique at this // point, and so `end_ok` cannot fail.
.expect("Fatal error - expected to be able to end request");
Ok(())
}
fn commit_rqs() {}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-23)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.