arch/mips/include/uapi/asm/stat.h
Source file repositories/reference/linux-study-clean/arch/mips/include/uapi/asm/stat.h
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/include/uapi/asm/stat.h- Extension
.h- Size
- 3015 bytes
- Lines
- 134
- 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/types.hasm/sgidefs.h
Detected Declarations
struct statstruct stat64struct stat
Annotated Snippet
struct stat {
unsigned st_dev;
long st_pad1[3]; /* Reserved for network id */
__kernel_ino_t st_ino;
__kernel_mode_t st_mode;
__u32 st_nlink;
__kernel_uid32_t st_uid;
__kernel_gid32_t st_gid;
unsigned st_rdev;
long st_pad2[2];
long st_size;
long st_pad3;
/*
* Actually this should be timestruc_t st_atime, st_mtime and st_ctime
* but we don't have it under Linux.
*/
long st_atime;
long st_atime_nsec;
long st_mtime;
long st_mtime_nsec;
long st_ctime;
long st_ctime_nsec;
long st_blksize;
long st_blocks;
long st_pad4[14];
};
/*
* This matches struct stat64 in glibc2.1, hence the absolutely insane
* amounts of padding around dev_t's. The memory layout is the same as of
* struct stat of the 64-bit kernel.
*/
struct stat64 {
unsigned long st_dev;
unsigned long st_pad0[3]; /* Reserved for st_dev expansion */
unsigned long long st_ino;
__kernel_mode_t st_mode;
__u32 st_nlink;
__kernel_uid32_t st_uid;
__kernel_gid32_t st_gid;
unsigned long st_rdev;
unsigned long st_pad1[3]; /* Reserved for st_rdev expansion */
long long st_size;
/*
* Actually this should be timestruc_t st_atime, st_mtime and st_ctime
* but we don't have it under Linux.
*/
long st_atime;
unsigned long st_atime_nsec; /* Reserved for st_atime expansion */
long st_mtime;
unsigned long st_mtime_nsec; /* Reserved for st_mtime expansion */
long st_ctime;
unsigned long st_ctime_nsec; /* Reserved for st_ctime expansion */
unsigned long st_blksize;
unsigned long st_pad2;
long long st_blocks;
};
#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
#if _MIPS_SIM == _MIPS_SIM_ABI64
/* The memory layout is the same as of struct stat64 of the 32-bit kernel. */
struct stat {
unsigned int st_dev;
unsigned int st_pad0[3]; /* Reserved for st_dev expansion */
unsigned long st_ino;
__kernel_mode_t st_mode;
__u32 st_nlink;
__kernel_uid32_t st_uid;
__kernel_gid32_t st_gid;
unsigned int st_rdev;
unsigned int st_pad1[3]; /* Reserved for st_rdev expansion */
long st_size;
Annotation
- Immediate include surface: `linux/types.h`, `asm/sgidefs.h`.
- Detected declarations: `struct stat`, `struct stat64`, `struct stat`.
- 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.