drivers/gpib/agilent_82350b/agilent_82350b.c
Source file repositories/reference/linux-study-clean/drivers/gpib/agilent_82350b/agilent_82350b.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpib/agilent_82350b/agilent_82350b.c- Extension
.c- Size
- 28783 bytes
- Lines
- 898
- Domain
- Driver Families
- Bucket
- drivers/gpib
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- 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
agilent_82350b.hlinux/delay.hlinux/ioport.hlinux/sched.hlinux/module.hlinux/slab.hasm/dma.hlinux/pci.hlinux/pci_ids.hlinux/string.hlinux/init.hlinux/wait.h
Detected Declarations
function agilent_82350b_accel_readfunction translate_wait_return_valuefunction agilent_82350b_accel_writefunction read_and_clear_event_statusfunction agilent_82350b_interruptfunction read_transfer_counterfunction set_transfer_counterfunction agilent_82350b_readfunction agilent_82350b_writefunction agilent_82350b_commandfunction agilent_82350b_take_controlfunction agilent_82350b_go_to_standbyfunction agilent_82350b_request_system_controlfunction agilent_82350b_interface_clearfunction agilent_82350b_remote_enablefunction agilent_82350b_enable_eosfunction agilent_82350b_disable_eosfunction agilent_82350b_update_statusfunction agilent_82350b_primary_addressfunction agilent_82350b_secondary_addressfunction agilent_82350b_parallel_pollfunction agilent_82350b_parallel_poll_configurefunction agilent_82350b_parallel_poll_responsefunction agilent_82350b_serial_poll_responsefunction agilent_82350b_serial_poll_statusfunction agilent_82350b_line_statusfunction agilent_82350b_t1_delayfunction agilent_82350b_return_to_localfunction agilent_82350b_allocate_privatefunction agilent_82350b_free_privatefunction init_82350a_hardwarefunction test_sramfunction agilent_82350b_generic_attachfunction agilent_82350b_unaccel_attachfunction agilent_82350b_accel_attachfunction agilent_82350b_detachfunction agilent_82350b_pci_probefunction agilent_82350b_init_modulefunction agilent_82350b_exit_modulemodule init agilent_82350b_init_module
Annotated Snippet
static struct pci_driver agilent_82350b_pci_driver = {
.name = DRV_NAME,
.id_table = agilent_82350b_pci_table,
.probe = &agilent_82350b_pci_probe
};
static int __init agilent_82350b_init_module(void)
{
int result;
result = pci_register_driver(&agilent_82350b_pci_driver);
if (result) {
pr_err("pci_register_driver failed: error = %d\n", result);
return result;
}
result = gpib_register_driver(&agilent_82350b_unaccel_interface, THIS_MODULE);
if (result) {
pr_err("gpib_register_driver failed: error = %d\n", result);
goto err_unaccel;
}
result = gpib_register_driver(&agilent_82350b_interface, THIS_MODULE);
if (result) {
pr_err("gpib_register_driver failed: error = %d\n", result);
goto err_interface;
}
return 0;
err_interface:
gpib_unregister_driver(&agilent_82350b_unaccel_interface);
err_unaccel:
pci_unregister_driver(&agilent_82350b_pci_driver);
return result;
}
static void __exit agilent_82350b_exit_module(void)
{
gpib_unregister_driver(&agilent_82350b_interface);
gpib_unregister_driver(&agilent_82350b_unaccel_interface);
pci_unregister_driver(&agilent_82350b_pci_driver);
}
module_init(agilent_82350b_init_module);
module_exit(agilent_82350b_exit_module);
Annotation
- Immediate include surface: `agilent_82350b.h`, `linux/delay.h`, `linux/ioport.h`, `linux/sched.h`, `linux/module.h`, `linux/slab.h`, `asm/dma.h`, `linux/pci.h`.
- Detected declarations: `function agilent_82350b_accel_read`, `function translate_wait_return_value`, `function agilent_82350b_accel_write`, `function read_and_clear_event_status`, `function agilent_82350b_interrupt`, `function read_transfer_counter`, `function set_transfer_counter`, `function agilent_82350b_read`, `function agilent_82350b_write`, `function agilent_82350b_command`.
- Atlas domain: Driver Families / drivers/gpib.
- Implementation status: pattern 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.