drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
Source file repositories/reference/linux-study-clean/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c- Extension
.c- Size
- 37820 bytes
- Lines
- 1477
- Domain
- Driver Families
- Bucket
- drivers/platform
- 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/kernel.hlinux/module.hlinux/sched/signal.hlinux/types.hlinux/errno.hlinux/cdev.hlinux/fs.hlinux/device.hlinux/device/bus.hlinux/mm.hlinux/pagemap.hlinux/bug.hlinux/completion.hlinux/list.hlinux/of.hlinux/platform_device.hlinux/compat.hlinux/dma-mapping.hlinux/rcupdate.hlinux/delay.hlinux/slab.hlinux/interrupt.hlinux/io.hlinux/uaccess.hsoc/bcm2835/raspberrypi-firmware.hlinux/raspberrypi/vchiq_core.hlinux/raspberrypi/vchiq_arm.hlinux/raspberrypi/vchiq_bus.hlinux/raspberrypi/vchiq_debugfs.hvchiq_ioctl.h
Detected Declarations
struct vchiq_arm_statestruct service_data_structfunction vchiq_doorbell_irqfunction vchiq_call_connected_callbacksfunction vchiq_add_connected_callbackfunction vchiq_platform_initfunction vchiq_platform_init_statefunction vchiq_platform_uninitfunction vchiq_dump_platform_statefunction vchiq_initialisefunction free_bulk_waiterfunction list_for_each_entry_safefunction vchiq_shutdownfunction vchiq_is_connectedfunction vchiq_connectfunction vchiq_add_servicefunction vchiq_open_servicefunction vchiq_bulk_transmitfunction vchiq_bulk_receivefunction vchiq_blocking_bulk_transferfunction add_completionfunction service_single_messagefunction service_callbackfunction vchiq_dump_platform_instancesfunction vchiq_dump_platform_service_statefunction vchiq_keepalive_vchiq_callbackfunction vchiq_keepalive_thread_funcfunction vchiq_use_internalfunction vchiq_release_internalfunction vchiq_on_remote_usefunction vchiq_on_remote_releasefunction vchiq_use_service_internalfunction vchiq_release_service_internalfunction vchiq_instance_get_debugfs_nodefunction vchiq_instance_get_use_countfunction vchiq_instance_get_pidfunction vchiq_instance_get_tracefunction vchiq_instance_set_tracefunction vchiq_use_servicefunction vchiq_release_servicefunction vchiq_dump_service_use_statefunction vchiq_check_servicefunction vchiq_platform_conn_state_changedfunction vchiq_probefunction vchiq_removefunction vchiq_driver_initfunction vchiq_driver_exitmodule init vchiq_driver_init
Annotated Snippet
module_init(vchiq_driver_init);
static void __exit vchiq_driver_exit(void)
{
bus_unregister(&vchiq_bus_type);
platform_driver_unregister(&vchiq_driver);
}
module_exit(vchiq_driver_exit);
MODULE_LICENSE("Dual BSD/GPL");
MODULE_DESCRIPTION("Videocore VCHIQ driver");
MODULE_AUTHOR("Broadcom Corporation");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/sched/signal.h`, `linux/types.h`, `linux/errno.h`, `linux/cdev.h`, `linux/fs.h`, `linux/device.h`.
- Detected declarations: `struct vchiq_arm_state`, `struct service_data_struct`, `function vchiq_doorbell_irq`, `function vchiq_call_connected_callbacks`, `function vchiq_add_connected_callback`, `function vchiq_platform_init`, `function vchiq_platform_init_state`, `function vchiq_platform_uninit`, `function vchiq_dump_platform_state`, `function vchiq_initialise`.
- Atlas domain: Driver Families / drivers/platform.
- 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.