drivers/hid/amd-sfh-hid/amd_sfh_hid.c
Source file repositories/reference/linux-study-clean/drivers/hid/amd-sfh-hid/amd_sfh_hid.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hid/amd-sfh-hid/amd_sfh_hid.c- Extension
.c- Size
- 4438 bytes
- Lines
- 185
- Domain
- Driver Families
- Bucket
- drivers/hid
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- 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/hid.hlinux/wait.hlinux/sched.hamd_sfh_hid.hamd_sfh_pcie.h
Detected Declarations
function amdtp_hid_parsefunction amdtp_hid_startfunction amdtp_hid_stopfunction amdtp_hid_closefunction amdtp_hid_requestfunction amdtp_wait_for_responsefunction amdtp_hid_wakeupfunction amdtp_hid_probefunction amdtp_hid_remove
Annotated Snippet
if (cli_data->hid_sensor_hubs[i]) {
hid_data = cli_data->hid_sensor_hubs[i]->driver_data;
hid_destroy_device(cli_data->hid_sensor_hubs[i]);
kfree(hid_data);
cli_data->hid_sensor_hubs[i] = NULL;
}
}
}
Annotation
- Immediate include surface: `linux/hid.h`, `linux/wait.h`, `linux/sched.h`, `amd_sfh_hid.h`, `amd_sfh_pcie.h`.
- Detected declarations: `function amdtp_hid_parse`, `function amdtp_hid_start`, `function amdtp_hid_stop`, `function amdtp_hid_close`, `function amdtp_hid_request`, `function amdtp_wait_for_response`, `function amdtp_hid_wakeup`, `function amdtp_hid_probe`, `function amdtp_hid_remove`.
- Atlas domain: Driver Families / drivers/hid.
- Implementation status: source implementation candidate.
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.