fs/ocfs2/stackglue.c
Source file repositories/reference/linux-study-clean/fs/ocfs2/stackglue.c
File Facts
- System
- Linux kernel
- Corpus path
fs/ocfs2/stackglue.c- Extension
.c- Size
- 16851 bytes
- Lines
- 702
- 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/list.hlinux/spinlock.hlinux/string.hlinux/module.hlinux/slab.hlinux/kmod.hlinux/fs.hlinux/kobject.hlinux/sysfs.hlinux/sysctl.hocfs2_fs.hstackglue.h
Detected Declarations
function list_for_each_entryfunction ocfs2_stack_driver_requestfunction ocfs2_stack_driver_getfunction ocfs2_stack_driver_putfunction ocfs2_stack_glue_registerfunction ocfs2_stack_glue_unregisterfunction ocfs2_stack_glue_set_max_proto_versionfunction list_for_each_entryfunction ocfs2_dlm_lockfunction ocfs2_dlm_unlockfunction ocfs2_dlm_lock_statusfunction ocfs2_dlm_lvb_validfunction ocfs2_dlm_dump_lksbfunction ocfs2_stack_supports_plocksfunction ocfs2_plockfunction ocfs2_cluster_connectfunction ocfs2_cluster_connect_agnosticfunction ocfs2_cluster_disconnectfunction programfunction ocfs2_cluster_disconnectfunction ocfs2_cluster_this_nodefunction ocfs2_max_locking_protocol_showfunction ocfs2_loaded_cluster_plugins_showfunction ocfs2_active_cluster_plugin_showfunction ocfs2_cluster_stack_showfunction ocfs2_cluster_stack_storefunction ocfs2_dlm_recover_showfunction ocfs2_sysfs_exitfunction ocfs2_sysfs_initfunction ocfs2_stack_glue_initfunction ocfs2_stack_glue_exitmodule init ocfs2_stack_glue_initexport ocfs2_stack_glue_registerexport ocfs2_stack_glue_unregisterexport ocfs2_stack_glue_set_max_proto_versionexport ocfs2_dlm_lockexport ocfs2_dlm_unlockexport ocfs2_dlm_lock_statusexport ocfs2_dlm_lvb_validexport ocfs2_dlm_lvbexport ocfs2_dlm_dump_lksbexport ocfs2_stack_supports_plocksexport ocfs2_plockexport ocfs2_cluster_connectexport ocfs2_cluster_connect_agnosticexport ocfs2_cluster_disconnectexport ocfs2_cluster_hangupexport ocfs2_cluster_this_node
Annotated Snippet
module_init(ocfs2_stack_glue_init);
module_exit(ocfs2_stack_glue_exit);
Annotation
- Immediate include surface: `linux/list.h`, `linux/spinlock.h`, `linux/string.h`, `linux/module.h`, `linux/slab.h`, `linux/kmod.h`, `linux/fs.h`, `linux/kobject.h`.
- Detected declarations: `function list_for_each_entry`, `function ocfs2_stack_driver_request`, `function ocfs2_stack_driver_get`, `function ocfs2_stack_driver_put`, `function ocfs2_stack_glue_register`, `function ocfs2_stack_glue_unregister`, `function ocfs2_stack_glue_set_max_proto_version`, `function list_for_each_entry`, `function ocfs2_dlm_lock`, `function ocfs2_dlm_unlock`.
- 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.