FILE
block.rs
File preview with syntax highlighting.
linux-6.19.14/rust/kernel/block.rs
1// SPDX-License-Identifier: GPL-2.0 2 3//! Types for working with the block layer. 4 5pub mod mq; 6 7/// Bit mask for masking out [`SECTOR_SIZE`]. 8pub const SECTOR_MASK: u32 = bindings::SECTOR_MASK; 9 10/// Sectors are size `1 << SECTOR_SHIFT`. 11pub const SECTOR_SHIFT: u32 = bindings::SECTOR_SHIFT; 12 13/// Size of a sector. 14pub const SECTOR_SIZE: u32 = bindings::SECTOR_SIZE; 15 16/// The difference between the size of a page and the size of a sector, 17/// expressed as a power of two. 18pub const PAGE_SECTORS_SHIFT: u32 = bindings::PAGE_SECTORS_SHIFT;
~/
Read-only file preview.