fs/zonefs/zonefs.h
Source file repositories/reference/linux-study-clean/fs/zonefs/zonefs.h
File Facts
- System
- Linux kernel
- Corpus path
fs/zonefs/zonefs.h- Extension
.h- Size
- 7508 bytes
- Lines
- 290
- Domain
- Core OS
- Bucket
- VFS And Filesystem Core
- Inferred role
- Core OS: operation-table or driver-model contract
- Status
- pattern 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 an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/fs.hlinux/magic.hlinux/uuid.hlinux/mutex.hlinux/rwsem.hlinux/kobject.h
Detected Declarations
struct zonefs_zonestruct zonefs_zone_groupstruct zonefs_inode_infostruct zonefs_superstruct zonefs_sb_infoenum zonefs_ztypeenum zonefs_featuresfunction zonefs_zone_typefunction zonefs_zone_is_cnvfunction zonefs_zone_is_seqfunction zonefs_inode_is_cnvfunction zonefs_inode_is_seqfunction zonefs_io_error
Annotated Snippet
extern const struct file_operations zonefs_dir_operations;
/* In file.c */
extern const struct address_space_operations zonefs_file_aops;
extern const struct file_operations zonefs_file_operations;
int zonefs_file_truncate(struct inode *inode, loff_t isize);
/* In sysfs.c */
int zonefs_sysfs_register(struct super_block *sb);
void zonefs_sysfs_unregister(struct super_block *sb);
int zonefs_sysfs_init(void);
void zonefs_sysfs_exit(void);
#endif
Annotation
- Immediate include surface: `linux/fs.h`, `linux/magic.h`, `linux/uuid.h`, `linux/mutex.h`, `linux/rwsem.h`, `linux/kobject.h`.
- Detected declarations: `struct zonefs_zone`, `struct zonefs_zone_group`, `struct zonefs_inode_info`, `struct zonefs_super`, `struct zonefs_sb_info`, `enum zonefs_ztype`, `enum zonefs_features`, `function zonefs_zone_type`, `function zonefs_zone_is_cnv`, `function zonefs_zone_is_seq`.
- Atlas domain: Core OS / VFS And Filesystem Core.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.