#[repr(C)]pub struct LinuxStatFs {
pub f_type: i64,
pub f_bsize: i64,
pub f_blocks: u64,
pub f_bfree: u64,
pub f_bavail: u64,
pub f_files: u64,
pub f_ffree: u64,
pub f_fsid: [i32; 2],
pub f_namelen: i64,
pub f_frsize: i64,
pub f_flags: i64,
pub f_spare: [i64; 4],
}Expand description
Linux statfs/statfs64 结构体(RISC-V 64位)
重要: 此结构体必须与 Linux 内核定义完全一致
参考:include/uapi/asm-generic/statfs.h
§字段说明
f_type: 文件系统类型魔数(使用 FileSystemType 枚举)f_bsize: 最优传输块大小f_blocks: 文件系统总块数f_bfree: 空闲块数f_bavail: 非特权用户可用块数f_files: 总 inode 数f_ffree: 空闲 inode 数f_fsid: 文件系统 IDf_namelen: 最大文件名长度f_frsize: 片段大小f_flags: 挂载标志(MountFlags)f_spare: 保留字段(填充)
Fields§
§f_type: i64§f_bsize: i64§f_blocks: u64§f_bfree: u64§f_bavail: u64§f_files: u64§f_ffree: u64§f_fsid: [i32; 2]§f_namelen: i64§f_frsize: i64§f_flags: i64§f_spare: [i64; 4]Implementations§
Source§impl LinuxStatFs
impl LinuxStatFs
Trait Implementations§
Source§impl Clone for LinuxStatFs
impl Clone for LinuxStatFs
Source§fn clone(&self) -> LinuxStatFs
fn clone(&self) -> LinuxStatFs
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinuxStatFs
impl Debug for LinuxStatFs
impl Copy for LinuxStatFs
Auto Trait Implementations§
impl Freeze for LinuxStatFs
impl RefUnwindSafe for LinuxStatFs
impl Send for LinuxStatFs
impl Sync for LinuxStatFs
impl Unpin for LinuxStatFs
impl UnwindSafe for LinuxStatFs
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)