drivers/hwmon/ibmaem.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/ibmaem.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/ibmaem.c- Extension
.c- Size
- 26845 bytes
- Lines
- 1097
- Domain
- Driver Families
- Bucket
- drivers/hwmon
- 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.
- 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/ipmi.hlinux/module.hlinux/hwmon.hlinux/hwmon-sysfs.hlinux/jiffies.hlinux/mutex.hlinux/kdev_t.hlinux/spinlock.hlinux/idr.hlinux/slab.hlinux/sched.hlinux/platform_device.hlinux/math64.hlinux/time.hlinux/err.h
Detected Declarations
struct aem_ipmi_datastruct aem_ro_sensor_templatestruct aem_rw_sensor_templatestruct aem_datastruct aem_iana_idstruct aem_find_firmware_reqstruct aem_find_firmware_respstruct aem_find_instance_reqstruct aem_find_instance_respstruct aem_read_sensor_reqstruct aem_read_sensor_respstruct aem_driver_datafunction aem_init_ipmi_datafunction aem_send_messagefunction aem_msg_handlerfunction aem_read_sensorfunction update_aem_energy_onefunction update_aem_energyfunction update_aem1_sensorsfunction update_aem2_sensorsfunction aem_deletefunction aem_find_aem1_countfunction aem_init_aem1_instfunction aem_init_aem1function aem_find_aem2function aem_init_aem2_instfunction aem_init_aem2function aem_register_bmcfunction aem_bmc_gonefunction name_showfunction version_showfunction aem_show_powerfunction aem_show_energyfunction aem_show_power_periodfunction aem_set_power_periodfunction aem_register_sensorsfunction aem2_show_tempfunction aem2_show_pcap_valuefunction aem_remove_sensorsfunction aem1_find_sensorsfunction aem2_find_sensorsfunction aem_initfunction aem_exitmodule init aem_init
Annotated Snippet
module_init(aem_init);
module_exit(aem_exit);
MODULE_ALIAS("dmi:bvnIBM:*:pnIBMSystemx3350-*");
MODULE_ALIAS("dmi:bvnIBM:*:pnIBMSystemx3550-*");
MODULE_ALIAS("dmi:bvnIBM:*:pnIBMSystemx3650-*");
MODULE_ALIAS("dmi:bvnIBM:*:pnIBMSystemx3655-*");
MODULE_ALIAS("dmi:bvnIBM:*:pnIBMSystemx3755-*");
MODULE_ALIAS("dmi:bvnIBM:*:pnIBM3850M2/x3950M2-*");
MODULE_ALIAS("dmi:bvnIBM:*:pnIBMBladeHC10-*");
Annotation
- Immediate include surface: `linux/ipmi.h`, `linux/module.h`, `linux/hwmon.h`, `linux/hwmon-sysfs.h`, `linux/jiffies.h`, `linux/mutex.h`, `linux/kdev_t.h`, `linux/spinlock.h`.
- Detected declarations: `struct aem_ipmi_data`, `struct aem_ro_sensor_template`, `struct aem_rw_sensor_template`, `struct aem_data`, `struct aem_iana_id`, `struct aem_find_firmware_req`, `struct aem_find_firmware_resp`, `struct aem_find_instance_req`, `struct aem_find_instance_resp`, `struct aem_read_sensor_req`.
- Atlas domain: Driver Families / drivers/hwmon.
- 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.