drivers/platform/x86/hdaps.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/hdaps.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/hdaps.c- Extension
.c- Size
- 16433 bytes
- Lines
- 628
- Domain
- Driver Families
- Bucket
- drivers/platform
- 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/delay.hlinux/platform_device.hlinux/input.hlinux/kernel.hlinux/mutex.hlinux/module.hlinux/timer.hlinux/dmi.hlinux/jiffies.hlinux/io.h
Detected Declarations
function __get_latchfunction __check_latchfunction __wait_latchfunction __device_refreshfunction __device_refresh_syncfunction __device_completefunction hdaps_readb_onefunction __hdaps_read_pairfunction hdaps_read_pairfunction hdaps_device_initfunction hdaps_probefunction hdaps_resumefunction hdaps_calibratefunction hdaps_mousedev_pollfunction hdaps_position_showfunction hdaps_variance_showfunction hdaps_temp1_showfunction hdaps_temp2_showfunction hdaps_keyboard_activity_showfunction hdaps_mouse_activity_showfunction hdaps_calibrate_showfunction hdaps_calibrate_storefunction hdaps_invert_showfunction hdaps_invert_storefunction hdaps_dmi_matchfunction hdaps_dmi_match_invertfunction hdaps_initfunction hdaps_exitmodule init hdaps_init
Annotated Snippet
module_init(hdaps_init);
module_exit(hdaps_exit);
module_param_named(invert, hdaps_invert, int, 0);
MODULE_PARM_DESC(invert, "invert data along each axis. 1 invert x-axis, "
"2 invert y-axis, 3 invert both axes.");
MODULE_AUTHOR("Robert Love");
MODULE_DESCRIPTION("IBM Hard Drive Active Protection System (HDAPS) driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/delay.h`, `linux/platform_device.h`, `linux/input.h`, `linux/kernel.h`, `linux/mutex.h`, `linux/module.h`, `linux/timer.h`, `linux/dmi.h`.
- Detected declarations: `function __get_latch`, `function __check_latch`, `function __wait_latch`, `function __device_refresh`, `function __device_refresh_sync`, `function __device_complete`, `function hdaps_readb_one`, `function __hdaps_read_pair`, `function hdaps_read_pair`, `function hdaps_device_init`.
- Atlas domain: Driver Families / drivers/platform.
- 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.