fs/squashfs/squashfs_fs.h
Source file repositories/reference/linux-study-clean/fs/squashfs/squashfs_fs.h
File Facts
- System
- Linux kernel
- Corpus path
fs/squashfs/squashfs_fs.h- Extension
.h- Size
- 10638 bytes
- Lines
- 454
- Domain
- Core OS
- Bucket
- VFS And Filesystem Core
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct meta_entrystruct meta_indexstruct squashfs_super_blockstruct squashfs_dir_indexstruct squashfs_base_inodestruct squashfs_ipc_inodestruct squashfs_lipc_inodestruct squashfs_dev_inodestruct squashfs_ldev_inodestruct squashfs_symlink_inodestruct squashfs_reg_inodestruct squashfs_lreg_inodestruct squashfs_dir_inodestruct squashfs_ldir_inodestruct squashfs_dir_entrystruct squashfs_dir_headerstruct squashfs_fragment_entrystruct squashfs_xattr_entrystruct squashfs_xattr_valstruct squashfs_xattr_idstruct squashfs_xattr_id_tablefunction Copyright
Annotated Snippet
struct meta_entry {
u64 data_block;
unsigned int index_block;
unsigned short offset;
unsigned short pad;
};
struct meta_index {
unsigned int inode_number;
unsigned int offset;
unsigned short entries;
unsigned short skip;
unsigned short locked;
unsigned short pad;
struct meta_entry meta_entry[SQUASHFS_META_ENTRIES];
};
/*
* definitions for structures on disk
*/
#define ZLIB_COMPRESSION 1
#define LZMA_COMPRESSION 2
#define LZO_COMPRESSION 3
#define XZ_COMPRESSION 4
#define LZ4_COMPRESSION 5
#define ZSTD_COMPRESSION 6
struct squashfs_super_block {
__le32 s_magic;
__le32 inodes;
__le32 mkfs_time;
__le32 block_size;
__le32 fragments;
__le16 compression;
__le16 block_log;
__le16 flags;
__le16 no_ids;
__le16 s_major;
__le16 s_minor;
__le64 root_inode;
__le64 bytes_used;
__le64 id_table_start;
__le64 xattr_id_table_start;
__le64 inode_table_start;
__le64 directory_table_start;
__le64 fragment_table_start;
__le64 lookup_table_start;
};
struct squashfs_dir_index {
__le32 index;
__le32 start_block;
__le32 size;
unsigned char name[];
};
struct squashfs_base_inode {
__le16 inode_type;
__le16 mode;
__le16 uid;
__le16 guid;
__le32 mtime;
__le32 inode_number;
};
struct squashfs_ipc_inode {
__le16 inode_type;
__le16 mode;
__le16 uid;
__le16 guid;
__le32 mtime;
__le32 inode_number;
__le32 nlink;
};
struct squashfs_lipc_inode {
__le16 inode_type;
__le16 mode;
__le16 uid;
__le16 guid;
__le32 mtime;
__le32 inode_number;
__le32 nlink;
__le32 xattr;
};
struct squashfs_dev_inode {
__le16 inode_type;
__le16 mode;
Annotation
- Detected declarations: `struct meta_entry`, `struct meta_index`, `struct squashfs_super_block`, `struct squashfs_dir_index`, `struct squashfs_base_inode`, `struct squashfs_ipc_inode`, `struct squashfs_lipc_inode`, `struct squashfs_dev_inode`, `struct squashfs_ldev_inode`, `struct squashfs_symlink_inode`.
- Atlas domain: Core OS / VFS And Filesystem Core.
- 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.