#[repr(C)]pub struct ext4_buf {Show 13 fields
pub flags: c_int,
pub lba: u64,
pub data: *mut u8,
pub lru_prio: u32,
pub lru_id: u32,
pub refctr: u32,
pub bc: *mut ext4_bcache,
pub on_dirty_list: bool,
pub lba_node: ext4_buf__bindgen_ty_1,
pub lru_node: ext4_buf__bindgen_ty_2,
pub dirty_node: ext4_buf__bindgen_ty_3,
pub end_write: Option<unsafe extern "C" fn(bc: *mut ext4_bcache, buf: *mut ext4_buf, res: c_int, arg: *mut c_void)>,
pub end_write_arg: *mut c_void,
}Expand description
@brief Single block descriptor
Fields§
§flags: c_int@brief Flags
lba: u64@brief Logical block address
data: *mut u8@brief Data buffer.
lru_prio: u32@brief LRU priority. (unused)
lru_id: u32@brief LRU id.
refctr: u32@brief Reference count table
bc: *mut ext4_bcache@brief The block cache this buffer belongs to.
on_dirty_list: bool@brief Whether or not buffer is on dirty list.
lba_node: ext4_buf__bindgen_ty_1@brief LBA tree node
lru_node: ext4_buf__bindgen_ty_2@brief LRU tree node
dirty_node: ext4_buf__bindgen_ty_3@brief Dirty list node
end_write: Option<unsafe extern "C" fn(bc: *mut ext4_bcache, buf: *mut ext4_buf, res: c_int, arg: *mut c_void)>@brief Callback routine after a disk-write operation. @param bc block cache descriptor @param buf buffer descriptor @param standard error code returned by bdev->bwrite() @param arg argument passed to this routine
end_write_arg: *mut c_void@brief argument passed to end_write() callback.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ext4_buf
impl RefUnwindSafe for ext4_buf
impl !Send for ext4_buf
impl !Sync for ext4_buf
impl Unpin for ext4_buf
impl UnwindSafe for ext4_buf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more