drivers/xen/manage.c
Source file repositories/reference/linux-study-clean/drivers/xen/manage.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/xen/manage.c- Extension
.c- Size
- 8977 bytes
- Lines
- 409
- Domain
- Driver Families
- Bucket
- drivers/xen
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/err.hlinux/slab.hlinux/reboot.hlinux/sysrq.hlinux/stop_machine.hlinux/suspend.hlinux/freezer.hlinux/syscore_ops.hlinux/export.hxen/xen.hxen/xenbus.hxen/grant_table.hxen/events.hxen/hvc-console.hxen/page.hxen/xen-ops.hasm/xen/hypercall.hasm/xen/hypervisor.h
Detected Declarations
struct suspend_infostruct shutdown_handlerenum shutdown_statefunction xen_resume_notifier_registerfunction xen_suspendfunction do_suspendfunction poweroff_nbfunction do_powerofffunction do_rebootfunction shutdown_handlerfunction sysrq_handlerfunction setup_shutdown_watcherfunction shutdown_eventfunction xen_setup_shutdown_eventmodule init xen_setup_shutdown_eventexport xen_resume_notifier_registerexport xen_setup_shutdown_event
Annotated Snippet
subsys_initcall(xen_setup_shutdown_event);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/err.h`, `linux/slab.h`, `linux/reboot.h`, `linux/sysrq.h`, `linux/stop_machine.h`, `linux/suspend.h`, `linux/freezer.h`.
- Detected declarations: `struct suspend_info`, `struct shutdown_handler`, `enum shutdown_state`, `function xen_resume_notifier_register`, `function xen_suspend`, `function do_suspend`, `function poweroff_nb`, `function do_poweroff`, `function do_reboot`, `function shutdown_handler`.
- Atlas domain: Driver Families / drivers/xen.
- Implementation status: integration 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.