fs/orangefs/file.c
Source file repositories/reference/linux-study-clean/fs/orangefs/file.c
File Facts
- System
- Linux kernel
- Corpus path
fs/orangefs/file.c- Extension
.c- Size
- 15530 bytes
- Lines
- 588
- 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
protocol.horangefs-kernel.horangefs-bufmap.hlinux/fs.hlinux/filelock.hlinux/pagemap.h
Detected Declarations
function flush_racachefunction wait_for_direct_iofunction service_operationfunction orangefs_revalidate_mappingfunction orangefs_file_read_iterfunction orangefs_file_splice_readfunction orangefs_file_write_iterfunction orangefs_faultfunction orangefs_file_mmap_preparefunction filefunction mmapfunction orangefs_fsyncfunction orangefs_file_llseekfunction locksfunction orangefs_flush
Annotated Snippet
const struct file_operations orangefs_file_operations = {
.llseek = orangefs_file_llseek,
.read_iter = orangefs_file_read_iter,
.write_iter = orangefs_file_write_iter,
.lock = orangefs_lock,
.mmap_prepare = orangefs_file_mmap_prepare,
.open = generic_file_open,
.splice_read = orangefs_file_splice_read,
.splice_write = iter_file_splice_write,
.flush = orangefs_flush,
.release = orangefs_file_release,
.fsync = orangefs_fsync,
.setlease = generic_setlease,
};
Annotation
- Immediate include surface: `protocol.h`, `orangefs-kernel.h`, `orangefs-bufmap.h`, `linux/fs.h`, `linux/filelock.h`, `linux/pagemap.h`.
- Detected declarations: `function flush_racache`, `function wait_for_direct_io`, `function service_operation`, `function orangefs_revalidate_mapping`, `function orangefs_file_read_iter`, `function orangefs_file_splice_read`, `function orangefs_file_write_iter`, `function orangefs_fault`, `function orangefs_file_mmap_prepare`, `function file`.
- 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.