arch/s390/mm/cmm.c
Source file repositories/reference/linux-study-clean/arch/s390/mm/cmm.c
File Facts
- System
- Linux kernel
- Corpus path
arch/s390/mm/cmm.c- Extension
.c- Size
- 10071 bytes
- Lines
- 448
- Domain
- Architecture Layer
- Bucket
- arch/s390
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- 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/errno.hlinux/fs.hlinux/init.hlinux/module.hlinux/moduleparam.hlinux/gfp.hlinux/sched.hlinux/string_helpers.hlinux/sysctl.hlinux/swap.hlinux/kthread.hlinux/oom.hlinux/uaccess.hasm/diag.h../../../drivers/s390/net/smsgiucv.h
Detected Declarations
struct cmm_page_arrayfunction cmm_alloc_pagesfunction __cmm_free_pagesfunction cmm_free_pagesfunction cmm_oom_notifyfunction cmm_threadfunction cmm_kick_threadfunction cmm_set_timerfunction cmm_timer_fnfunction cmm_set_pagesfunction cmm_get_pagesfunction cmm_add_timed_pagesfunction cmm_get_timed_pagesfunction cmm_set_timeoutfunction cmm_skip_blanksfunction cmm_pages_handlerfunction cmm_timed_pages_handlerfunction cmm_timeout_handlerfunction cmm_smsg_targetfunction cmm_initfunction cmm_exitmodule init cmm_init
Annotated Snippet
module_init(cmm_init);
static void __exit cmm_exit(void)
{
unregister_sysctl_table(cmm_sysctl_header);
#ifdef CONFIG_CMM_IUCV
smsg_unregister_callback(SMSG_PREFIX, cmm_smsg_target);
#endif
unregister_oom_notifier(&cmm_oom_nb);
kthread_stop(cmm_thread_ptr);
timer_delete_sync(&cmm_timer);
cmm_free_pages(cmm_pages, &cmm_pages, &cmm_page_list);
cmm_free_pages(cmm_timed_pages, &cmm_timed_pages, &cmm_timed_page_list);
}
module_exit(cmm_exit);
MODULE_DESCRIPTION("Cooperative memory management interface");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/errno.h`, `linux/fs.h`, `linux/init.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/gfp.h`, `linux/sched.h`, `linux/string_helpers.h`.
- Detected declarations: `struct cmm_page_array`, `function cmm_alloc_pages`, `function __cmm_free_pages`, `function cmm_free_pages`, `function cmm_oom_notify`, `function cmm_thread`, `function cmm_kick_thread`, `function cmm_set_timer`, `function cmm_timer_fn`, `function cmm_set_pages`.
- Atlas domain: Architecture Layer / arch/s390.
- 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.