fs/hpfs/file.c
Source file repositories/reference/linux-study-clean/fs/hpfs/file.c
File Facts
- System
- Linux kernel
- Corpus path
fs/hpfs/file.c- Extension
.c- Size
- 6998 bytes
- Lines
- 275
- 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
hpfs_fn.hlinux/mpage.hlinux/iomap.hlinux/fiemap.h
Detected Declarations
function Patockafunction hpfs_file_fsyncfunction hpfs_bmapfunction hpfs_truncatefunction hpfs_get_blockfunction hpfs_iomap_beginfunction hpfs_read_foliofunction hpfs_readaheadfunction hpfs_writepagesfunction hpfs_write_failedfunction hpfs_write_beginfunction hpfs_write_endfunction _hpfs_bmapfunction hpfs_fiemap
Annotated Snippet
const struct file_operations hpfs_file_ops =
{
.llseek = generic_file_llseek,
.read_iter = generic_file_read_iter,
.write_iter = generic_file_write_iter,
.mmap_prepare = generic_file_mmap_prepare,
.release = hpfs_file_release,
.fsync = hpfs_file_fsync,
.splice_read = filemap_splice_read,
.unlocked_ioctl = hpfs_ioctl,
.compat_ioctl = compat_ptr_ioctl,
};
const struct inode_operations hpfs_file_iops =
{
.setattr = hpfs_setattr,
.fiemap = hpfs_fiemap,
};
Annotation
- Immediate include surface: `hpfs_fn.h`, `linux/mpage.h`, `linux/iomap.h`, `linux/fiemap.h`.
- Detected declarations: `function Patocka`, `function hpfs_file_fsync`, `function hpfs_bmap`, `function hpfs_truncate`, `function hpfs_get_block`, `function hpfs_iomap_begin`, `function hpfs_read_folio`, `function hpfs_readahead`, `function hpfs_writepages`, `function hpfs_write_failed`.
- 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.