fs/nilfs2/dir.c
Source file repositories/reference/linux-study-clean/fs/nilfs2/dir.c
File Facts
- System
- Linux kernel
- Corpus path
fs/nilfs2/dir.c- Extension
.c- Size
- 17038 bytes
- Lines
- 667
- 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/pagemap.hlinux/filelock.hnilfs.hpage.h
Detected Declarations
function Copyrightfunction nilfs_rec_len_to_diskfunction nilfs_chunk_sizefunction nilfs_last_bytefunction nilfs_prepare_chunkfunction nilfs_commit_chunkfunction nilfs_check_foliofunction nilfs_matchfunction nilfs_readdirfunction nilfs_find_entryfunction nilfs_inode_by_namefunction nilfs_set_linkfunction nilfs_add_linkfunction nilfs_delete_entryfunction nilfs_make_emptyfunction empty
Annotated Snippet
const struct file_operations nilfs_dir_operations = {
.llseek = generic_file_llseek,
.read = generic_read_dir,
.iterate_shared = nilfs_readdir,
.unlocked_ioctl = nilfs_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = nilfs_compat_ioctl,
#endif /* CONFIG_COMPAT */
.fsync = nilfs_sync_file,
.setlease = generic_setlease,
};
Annotation
- Immediate include surface: `linux/pagemap.h`, `linux/filelock.h`, `nilfs.h`, `page.h`.
- Detected declarations: `function Copyright`, `function nilfs_rec_len_to_disk`, `function nilfs_chunk_size`, `function nilfs_last_byte`, `function nilfs_prepare_chunk`, `function nilfs_commit_chunk`, `function nilfs_check_folio`, `function nilfs_match`, `function nilfs_readdir`, `function nilfs_find_entry`.
- 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.