fs/zonefs/file.c
Source file repositories/reference/linux-study-clean/fs/zonefs/file.c
File Facts
- System
- Linux kernel
- Corpus path
fs/zonefs/file.c- Extension
.c- Size
- 23129 bytes
- Lines
- 874
- 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/module.hlinux/pagemap.hlinux/iomap.hlinux/init.hlinux/slab.hlinux/blkdev.hlinux/statfs.hlinux/writeback.hlinux/quotaops.hlinux/seq_file.hlinux/parser.hlinux/uio.hlinux/mman.hlinux/sched/mm.hlinux/task_io_accounting_ops.hzonefs.htrace.h
Detected Declarations
function Copyrightfunction zonefs_write_iomap_beginfunction zonefs_read_foliofunction zonefs_readaheadfunction zonefs_writeback_rangefunction zonefs_writepagesfunction zonefs_swap_activatefunction zonefs_file_truncatefunction zonefs_file_fsyncfunction zonefs_filemap_page_mkwritefunction zonefs_file_mmap_preparefunction zonefs_file_llseekfunction zonefs_file_write_dio_end_iofunction zonefs_write_check_limitsfunction zonefs_write_checksfunction usedfunction againfunction zonefs_file_buffered_writefunction zonefs_file_write_iterfunction zonefs_file_read_dio_end_iofunction zonefs_file_read_iterfunction zonefs_file_splice_readfunction zonefs_seq_file_need_wrofunction zonefs_seq_file_write_openfunction zonefs_file_openfunction zonefs_seq_file_write_closefunction anymorefunction writtenfunction zonefs_file_release
Annotated Snippet
const struct file_operations zonefs_file_operations = {
.open = zonefs_file_open,
.release = zonefs_file_release,
.fsync = zonefs_file_fsync,
.mmap_prepare = zonefs_file_mmap_prepare,
.llseek = zonefs_file_llseek,
.read_iter = zonefs_file_read_iter,
.write_iter = zonefs_file_write_iter,
.splice_read = zonefs_file_splice_read,
.splice_write = iter_file_splice_write,
.iopoll = iocb_bio_iopoll,
};
Annotation
- Immediate include surface: `linux/module.h`, `linux/pagemap.h`, `linux/iomap.h`, `linux/init.h`, `linux/slab.h`, `linux/blkdev.h`, `linux/statfs.h`, `linux/writeback.h`.
- Detected declarations: `function Copyright`, `function zonefs_write_iomap_begin`, `function zonefs_read_folio`, `function zonefs_readahead`, `function zonefs_writeback_range`, `function zonefs_writepages`, `function zonefs_swap_activate`, `function zonefs_file_truncate`, `function zonefs_file_fsync`, `function zonefs_filemap_page_mkwrite`.
- 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.