fs/9p/vfs_file.c
Source file repositories/reference/linux-study-clean/fs/9p/vfs_file.c
File Facts
- System
- Linux kernel
- Corpus path
fs/9p/vfs_file.c- Extension
.c- Size
- 12962 bytes
- Lines
- 535
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/errno.hlinux/fs.hlinux/filelock.hlinux/sched.hlinux/file.hlinux/stat.hlinux/string.hlinux/list.hlinux/pagemap.hlinux/utsname.hlinux/uaccess.hlinux/uio.hlinux/slab.hnet/9p/9p.hnet/9p/client.hv9fs.hv9fs_vfs.hfid.hcache.h
Detected Declarations
function v9fs_file_openfunction v9fs_file_lockfunction v9fs_file_do_lockfunction v9fs_file_getlockfunction v9fs_file_lock_dotlfunction v9fs_file_flock_dotlfunction v9fs_file_read_iterfunction v9fs_file_splice_readfunction v9fs_file_write_iterfunction v9fs_file_fsyncfunction v9fs_file_fsync_dotlfunction v9fs_file_mmap_preparefunction v9fs_vm_page_mkwritefunction v9fs_mmap_vm_close
Annotated Snippet
const struct file_operations v9fs_file_operations = {
.llseek = generic_file_llseek,
.read_iter = v9fs_file_read_iter,
.write_iter = v9fs_file_write_iter,
.open = v9fs_file_open,
.release = v9fs_dir_release,
.lock = v9fs_file_lock,
.mmap_prepare = generic_file_readonly_mmap_prepare,
.splice_read = v9fs_file_splice_read,
.splice_write = iter_file_splice_write,
.fsync = v9fs_file_fsync,
};
const struct file_operations v9fs_file_operations_dotl = {
.llseek = generic_file_llseek,
.read_iter = v9fs_file_read_iter,
.write_iter = v9fs_file_write_iter,
.open = v9fs_file_open,
.release = v9fs_dir_release,
.lock = v9fs_file_lock_dotl,
.flock = v9fs_file_flock_dotl,
.mmap_prepare = v9fs_file_mmap_prepare,
.splice_read = v9fs_file_splice_read,
.splice_write = iter_file_splice_write,
.fsync = v9fs_file_fsync_dotl,
};
Annotation
- Immediate include surface: `linux/module.h`, `linux/errno.h`, `linux/fs.h`, `linux/filelock.h`, `linux/sched.h`, `linux/file.h`, `linux/stat.h`, `linux/string.h`.
- Detected declarations: `function v9fs_file_open`, `function v9fs_file_lock`, `function v9fs_file_do_lock`, `function v9fs_file_getlock`, `function v9fs_file_lock_dotl`, `function v9fs_file_flock_dotl`, `function v9fs_file_read_iter`, `function v9fs_file_splice_read`, `function v9fs_file_write_iter`, `function v9fs_file_fsync`.
- Atlas domain: Core OS / VFS And Filesystem Core.
- Implementation status: pattern 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.