drivers/gpib/pc2/pc2_gpib.c
Source file repositories/reference/linux-study-clean/drivers/gpib/pc2/pc2_gpib.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpib/pc2/pc2_gpib.c- Extension
.c- Size
- 19271 bytes
- Lines
- 686
- Domain
- Driver Families
- Bucket
- drivers/gpib
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/ioport.hlinux/sched.hlinux/module.hlinux/slab.hlinux/bitops.hasm/dma.hlinux/dma-mapping.hlinux/string.hlinux/init.hnec7210.hgpibP.h
Detected Declarations
struct pc2_privfunction CLEAR_INTR_REGfunction pc2_interruptfunction pc2a_interruptfunction pc2_readfunction pc2_writefunction pc2_commandfunction pc2_take_controlfunction pc2_go_to_standbyfunction pc2_request_system_controlfunction pc2_interface_clearfunction pc2_remote_enablefunction pc2_enable_eosfunction pc2_disable_eosfunction pc2_update_statusfunction pc2_primary_addressfunction pc2_secondary_addressfunction pc2_parallel_pollfunction pc2_parallel_poll_configurefunction pc2_parallel_poll_responsefunction pc2_serial_poll_responsefunction pc2_serial_poll_statusfunction pc2_t1_delayfunction pc2_return_to_localfunction allocate_privatefunction free_privatefunction pc2_generic_attachfunction pc2_attachfunction pc2_detachfunction pc2a_common_attachfunction pc2a_attachfunction pc2a_cb7210_attachfunction pc2_2a_attachfunction pc2a_common_detachfunction pc2a_detachfunction pc2_2a_detachfunction pc2_init_modulefunction pc2_exit_modulemodule init pc2_init_module
Annotated Snippet
module_init(pc2_init_module);
module_exit(pc2_exit_module);
Annotation
- Immediate include surface: `linux/ioport.h`, `linux/sched.h`, `linux/module.h`, `linux/slab.h`, `linux/bitops.h`, `asm/dma.h`, `linux/dma-mapping.h`, `linux/string.h`.
- Detected declarations: `struct pc2_priv`, `function CLEAR_INTR_REG`, `function pc2_interrupt`, `function pc2a_interrupt`, `function pc2_read`, `function pc2_write`, `function pc2_command`, `function pc2_take_control`, `function pc2_go_to_standby`, `function pc2_request_system_control`.
- Atlas domain: Driver Families / drivers/gpib.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.