drivers/hid/hid-roccat-kone.c
Source file repositories/reference/linux-study-clean/drivers/hid/hid-roccat-kone.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hid/hid-roccat-kone.c- Extension
.c- Size
- 24135 bytes
- Lines
- 918
- 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-kone.h
Detected Declarations
function kone_profile_activatedfunction kone_profile_reportfunction kone_receivefunction kone_sendfunction kone_set_settings_checksumfunction kone_check_writefunction kone_get_settingsfunction kone_set_settingsfunction kone_get_profilefunction kone_set_profilefunction kone_get_weightfunction kone_get_firmware_versionfunction kone_sysfs_read_settingsfunction kone_sysfs_write_settingsfunction kone_sysfs_read_profilexfunction kone_sysfs_write_profilexfunction kone_sysfs_show_actual_profilefunction kone_sysfs_show_actual_dpifunction kone_sysfs_show_weightfunction kone_sysfs_show_firmware_versionfunction kone_sysfs_show_tcufunction kone_tcu_commandfunction kone_sysfs_set_tcufunction kone_sysfs_show_startup_profilefunction kone_sysfs_set_startup_profilefunction kone_init_kone_device_structfunction kone_init_specialsfunction kone_remove_specialsfunction kone_probefunction kone_removefunction kone_keep_values_up_to_datefunction kone_report_to_chrdevfunction kone_raw_eventfunction kone_initfunction kone_exitmodule init kone_init
Annotated Snippet
module_init(kone_init);
module_exit(kone_exit);
MODULE_AUTHOR("Stefan Achatz");
MODULE_DESCRIPTION("USB Roccat Kone 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 kone_profile_activated`, `function kone_profile_report`, `function kone_receive`, `function kone_send`, `function kone_set_settings_checksum`, `function kone_check_write`, `function kone_get_settings`, `function kone_set_settings`, `function kone_get_profile`, `function kone_set_profile`.
- 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.