fs/mbcache.c
Source file repositories/reference/linux-study-clean/fs/mbcache.c
File Facts
- System
- Linux kernel
- Corpus path
fs/mbcache.c- Extension
.c- Size
- 12793 bytes
- Lines
- 445
- Domain
- Core OS
- Bucket
- VFS And Filesystem Core
- Inferred role
- Core OS: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/spinlock.hlinux/slab.hlinux/list.hlinux/list_bl.hlinux/module.hlinux/sched.hlinux/workqueue.hlinux/mbcache.h
Detected Declarations
struct mb_cachefunction mb_cache_entry_createfunction __mb_cache_entry_freefunction mb_cache_entry_wait_unusedfunction mb_cache_entry_touchfunction mb_cache_countfunction mb_cache_shrinkfunction mb_cache_scanfunction mb_cache_shrink_workerfunction mb_cache_destroyfunction mbcache_initfunction mbcache_exitmodule init mbcache_initexport mb_cache_entry_createexport __mb_cache_entry_freeexport mb_cache_entry_wait_unusedexport mb_cache_entry_find_firstexport mb_cache_entry_find_nextexport mb_cache_entry_getexport mb_cache_entry_delete_or_getexport mb_cache_entry_touchexport mb_cache_createexport mb_cache_destroy
Annotated Snippet
module_init(mbcache_init)
module_exit(mbcache_exit)
MODULE_AUTHOR("Jan Kara <jack@suse.cz>");
MODULE_DESCRIPTION("Meta block cache (for extended attributes)");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/spinlock.h`, `linux/slab.h`, `linux/list.h`, `linux/list_bl.h`, `linux/module.h`, `linux/sched.h`, `linux/workqueue.h`, `linux/mbcache.h`.
- Detected declarations: `struct mb_cache`, `function mb_cache_entry_create`, `function __mb_cache_entry_free`, `function mb_cache_entry_wait_unused`, `function mb_cache_entry_touch`, `function mb_cache_count`, `function mb_cache_shrink`, `function mb_cache_scan`, `function mb_cache_shrink_worker`, `function mb_cache_destroy`.
- Atlas domain: Core OS / VFS And Filesystem Core.
- Implementation status: integration 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.