fs/nfs/nfs4file.c
Source file repositories/reference/linux-study-clean/fs/nfs/nfs4file.c
File Facts
- System
- Linux kernel
- Corpus path
fs/nfs/nfs4file.c- Extension
.c- Size
- 11149 bytes
- Lines
- 460
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/fs.hlinux/file.hlinux/falloc.hlinux/mount.hlinux/nfs_fs.hlinux/nfs_ssc.hlinux/splice.hdelegation.hinternal.hiostat.hfscache.hpnfs.hnfstrace.hnfs42.h
Detected Declarations
function Copyrightfunction nfs4_file_flushfunction __nfs4_copy_file_rangefunction nfs4_copy_file_rangefunction nfs4_file_llseekfunction nfs42_fallocatefunction nfs42_remap_file_rangefunction __nfs42_ssc_closefunction nfs42_ssc_register_opsfunction nfs42_ssc_unregister_opsfunction nfs4_setlease
Annotated Snippet
const struct file_operations nfs4_file_operations = {
.read_iter = nfs_file_read,
.write_iter = nfs_file_write,
.mmap_prepare = nfs_file_mmap_prepare,
.open = nfs4_file_open,
.flush = nfs4_file_flush,
.release = nfs_file_release,
.fsync = nfs_file_fsync,
.lock = nfs_lock,
.flock = nfs_flock,
.splice_read = nfs_file_splice_read,
.splice_write = iter_file_splice_write,
.check_flags = nfs_check_flags,
.setlease = nfs4_setlease,
#ifdef CONFIG_NFS_V4_2
.copy_file_range = nfs4_copy_file_range,
.llseek = nfs4_file_llseek,
.fallocate = nfs42_fallocate,
.remap_file_range = nfs42_remap_file_range,
#else
.llseek = nfs_file_llseek,
#endif
.fop_flags = FOP_DONTCACHE,
};
Annotation
- Immediate include surface: `linux/fs.h`, `linux/file.h`, `linux/falloc.h`, `linux/mount.h`, `linux/nfs_fs.h`, `linux/nfs_ssc.h`, `linux/splice.h`, `delegation.h`.
- Detected declarations: `function Copyright`, `function nfs4_file_flush`, `function __nfs4_copy_file_range`, `function nfs4_copy_file_range`, `function nfs4_file_llseek`, `function nfs42_fallocate`, `function nfs42_remap_file_range`, `function __nfs42_ssc_close`, `function nfs42_ssc_register_ops`, `function nfs42_ssc_unregister_ops`.
- 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.