drivers/input/mouse/psmouse-base.c
Source file repositories/reference/linux-study-clean/drivers/input/mouse/psmouse-base.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/input/mouse/psmouse-base.c- Extension
.c- Size
- 51247 bytes
- Lines
- 2036
- Domain
- Driver Families
- Bucket
- drivers/input
- 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/bitops.hlinux/delay.hlinux/module.hlinux/slab.hlinux/interrupt.hlinux/input.hlinux/serio.hlinux/init.hlinux/libps2.hlinux/mutex.hlinux/types.hpsmouse.hsynaptics.hlogips2pp.halps.hlifebook.htrackpoint.htouchkit_ps2.helantech.hsentelic.hcypress_ps2.hfocaltech.hvmmouse.hbyd.h
Detected Declarations
function psmouse_report_standard_buttonsfunction psmouse_report_standard_motionfunction psmouse_report_standard_packetfunction psmouse_process_bytefunction __psmouse_set_statefunction psmouse_set_statefunction psmouse_handle_bytefunction psmouse_handle_oob_datafunction psmouse_pre_receive_bytefunction psmouse_receive_bytefunction time_afterfunction psmouse_resetfunction psmouse_set_resolutionfunction psmouse_set_ratefunction psmouse_set_scalefunction psmouse_pollfunction psmouse_check_pnp_idfunction psmouse_matches_pnp_idfunction genius_detectfunction intellimouse_detectfunction im_explorer_detectfunction thinking_detectfunction ps2bare_detectfunction cortron_detectfunction psmouse_apply_defaultsfunction psmouse_do_detectfunction psmouse_try_protocolfunction psmouse_extensionsfunction ThinkingMousefunction psmouse_do_detectfunction psmouse_try_protocolfunction psmouse_try_protocolfunction devicesfunction psmouse_probefunction psmouse_initializefunction psmouse_activatefunction psmouse_deactivatefunction psmouse_resyncfunction psmouse_cleanupfunction psmouse_disconnectfunction psmouse_switch_protocolfunction psmouse_connectfunction __psmouse_reconnectfunction psmouse_reconnectfunction psmouse_fast_reconnectfunction psmouse_attr_show_helperfunction psmouse_attr_set_helperfunction psmouse_show_int_attr
Annotated Snippet
module_init(psmouse_init);
module_exit(psmouse_exit);
Annotation
- Immediate include surface: `linux/bitops.h`, `linux/delay.h`, `linux/module.h`, `linux/slab.h`, `linux/interrupt.h`, `linux/input.h`, `linux/serio.h`, `linux/init.h`.
- Detected declarations: `function psmouse_report_standard_buttons`, `function psmouse_report_standard_motion`, `function psmouse_report_standard_packet`, `function psmouse_process_byte`, `function __psmouse_set_state`, `function psmouse_set_state`, `function psmouse_handle_byte`, `function psmouse_handle_oob_data`, `function psmouse_pre_receive_byte`, `function psmouse_receive_byte`.
- Atlas domain: Driver Families / drivers/input.
- 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.