drivers/hid/hid-roccat-pyra.c
Source file repositories/reference/linux-study-clean/drivers/hid/hid-roccat-pyra.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hid/hid-roccat-pyra.c- Extension
.c- Size
- 16601 bytes
- Lines
- 613
- Domain
- Driver Families
- Bucket
- drivers/hid
- 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/device.hlinux/input.hlinux/hid.hlinux/module.hlinux/slab.hlinux/hid-roccat.hhid-ids.hhid-roccat-common.hhid-roccat-pyra.h
Detected Declarations
function profile_activatedfunction pyra_send_controlfunction pyra_get_profile_settingsfunction pyra_get_settingsfunction pyra_set_settingsfunction pyra_sysfs_readfunction pyra_sysfs_writefunction pyra_sysfs_read_profilex_settingsfunction pyra_sysfs_read_profilex_buttonsfunction pyra_sysfs_write_settingsfunction pyra_sysfs_show_actual_cpifunction pyra_sysfs_show_actual_profilefunction pyra_sysfs_show_firmware_versionfunction pyra_init_pyra_device_structfunction pyra_init_specialsfunction pyra_remove_specialsfunction pyra_probefunction pyra_removefunction pyra_keep_values_up_to_datefunction pyra_report_to_chrdevfunction pyra_raw_eventfunction pyra_initfunction pyra_exitmodule init pyra_init
Annotated Snippet
module_init(pyra_init);
module_exit(pyra_exit);
MODULE_AUTHOR("Stefan Achatz");
MODULE_DESCRIPTION("USB Roccat Pyra driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/device.h`, `linux/input.h`, `linux/hid.h`, `linux/module.h`, `linux/slab.h`, `linux/hid-roccat.h`, `hid-ids.h`, `hid-roccat-common.h`.
- Detected declarations: `function profile_activated`, `function pyra_send_control`, `function pyra_get_profile_settings`, `function pyra_get_settings`, `function pyra_set_settings`, `function pyra_sysfs_read`, `function pyra_sysfs_write`, `function pyra_sysfs_read_profilex_settings`, `function pyra_sysfs_read_profilex_buttons`, `function pyra_sysfs_write_settings`.
- Atlas domain: Driver Families / drivers/hid.
- 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.