arch/mips/include/uapi/asm/statfs.h
Source file repositories/reference/linux-study-clean/arch/mips/include/uapi/asm/statfs.h
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/include/uapi/asm/statfs.h- Extension
.h- Size
- 1987 bytes
- Lines
- 102
- Domain
- Architecture Layer
- Bucket
- arch/mips
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/posix_types.hasm/sgidefs.hlinux/types.h
Detected Declarations
struct statfsstruct statfs64struct statfs64struct compat_statfs64
Annotated Snippet
struct statfs {
long f_type;
#define f_fstyp f_type
long f_bsize;
long f_frsize; /* Fragment size - unsupported */
long f_blocks;
long f_bfree;
long f_files;
long f_ffree;
long f_bavail;
/* Linux specials */
__kernel_fsid_t f_fsid;
long f_namelen;
long f_flags;
long f_spare[5];
};
#if (_MIPS_SIM == _MIPS_SIM_ABI32) || (_MIPS_SIM == _MIPS_SIM_NABI32)
/*
* Unlike the traditional version the LFAPI version has none of the ABI junk
*/
struct statfs64 {
__u32 f_type;
__u32 f_bsize;
__u32 f_frsize; /* Fragment size - unsupported */
__u32 __pad;
__u64 f_blocks;
__u64 f_bfree;
__u64 f_files;
__u64 f_ffree;
__u64 f_bavail;
__kernel_fsid_t f_fsid;
__u32 f_namelen;
__u32 f_flags;
__u32 f_spare[5];
};
#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
#if _MIPS_SIM == _MIPS_SIM_ABI64
struct statfs64 { /* Same as struct statfs */
long f_type;
long f_bsize;
long f_frsize; /* Fragment size - unsupported */
long f_blocks;
long f_bfree;
long f_files;
long f_ffree;
long f_bavail;
/* Linux specials */
__kernel_fsid_t f_fsid;
long f_namelen;
long f_flags;
long f_spare[5];
};
struct compat_statfs64 {
__u32 f_type;
__u32 f_bsize;
__u32 f_frsize; /* Fragment size - unsupported */
__u32 __pad;
__u64 f_blocks;
__u64 f_bfree;
__u64 f_files;
__u64 f_ffree;
__u64 f_bavail;
__kernel_fsid_t f_fsid;
__u32 f_namelen;
__u32 f_flags;
__u32 f_spare[5];
};
#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
#endif /* _ASM_STATFS_H */
Annotation
- Immediate include surface: `linux/posix_types.h`, `asm/sgidefs.h`, `linux/types.h`.
- Detected declarations: `struct statfs`, `struct statfs64`, `struct statfs64`, `struct compat_statfs64`.
- Atlas domain: Architecture Layer / arch/mips.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.