drivers/char/ipmi/ipmi_poweroff.c
Source file repositories/reference/linux-study-clean/drivers/char/ipmi/ipmi_poweroff.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/char/ipmi/ipmi_poweroff.c- Extension
.c- Size
- 18700 bytes
- Lines
- 720
- Domain
- Driver Families
- Bucket
- drivers/char
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/moduleparam.hlinux/proc_fs.hlinux/string.hlinux/completion.hlinux/pm.hlinux/kdev_t.hlinux/ipmi.hlinux/ipmi_smi.hlinux/sysctl.h
Detected Declarations
struct poweroff_functionfunction set_param_ifnumfunction dummy_smi_freefunction dummy_recv_freefunction receive_handlerfunction ipmi_request_wait_for_responsefunction ipmi_request_in_rc_modefunction pps_poweroff_atcafunction ipmi_atca_detectfunction ipmi_poweroff_atcafunction driversfunction ipmi_cpi1_detectfunction ipmi_poweroff_cpi1function ipmi_dell_chassis_detectfunction ipmi_hp_chassis_detectfunction ipmi_chassis_detectfunction ipmi_poweroff_chassisfunction ipmi_poweroff_functionfunction ipmi_po_new_smifunction ipmi_po_smi_gonefunction ipmi_poweroff_initfunction ipmi_poweroff_cleanupmodule init ipmi_poweroff_init
Annotated Snippet
module_init(ipmi_poweroff_init);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Corey Minyard <minyard@mvista.com>");
MODULE_DESCRIPTION("IPMI Poweroff extension to sys_reboot");
Annotation
- Immediate include surface: `linux/module.h`, `linux/moduleparam.h`, `linux/proc_fs.h`, `linux/string.h`, `linux/completion.h`, `linux/pm.h`, `linux/kdev_t.h`, `linux/ipmi.h`.
- Detected declarations: `struct poweroff_function`, `function set_param_ifnum`, `function dummy_smi_free`, `function dummy_recv_free`, `function receive_handler`, `function ipmi_request_wait_for_response`, `function ipmi_request_in_rc_mode`, `function pps_poweroff_atca`, `function ipmi_atca_detect`, `function ipmi_poweroff_atca`.
- Atlas domain: Driver Families / drivers/char.
- 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.