drivers/mmc/host/vub300.c
Source file repositories/reference/linux-study-clean/drivers/mmc/host/vub300.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mmc/host/vub300.c- Extension
.c- Size
- 73198 bytes
- Lines
- 2482
- Domain
- Driver Families
- Bucket
- drivers/mmc
- 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/kernel.hlinux/errno.hlinux/init.hlinux/slab.hlinux/module.hlinux/kref.hlinux/uaccess.hlinux/usb.hlinux/mutex.hlinux/mmc/host.hlinux/mmc/card.hlinux/mmc/sdio_func.hlinux/mmc/sdio_ids.hlinux/workqueue.hlinux/ctype.hlinux/firmware.hlinux/scatterlist.h
Detected Declarations
struct host_controller_infostruct sd_command_headerstruct sd_irqpoll_headerstruct sd_common_headerstruct sd_response_headerstruct sd_status_headerstruct sd_error_headerstruct sd_interrupt_headerstruct offload_registers_accessstruct sd_offloaded_interruptstruct sd_register_headerstruct sd_offloaded_piggybackstruct sdio_registerstruct vub300_mmc_hoststruct offload_interrupt_function_registerenum SD_RESPONSE_TYPEfunction interface_to_InterfaceNumberfunction vub300_deletefunction vub300_queue_cmnd_workfunction vub300_queue_poll_workfunction vub300_queue_dead_workfunction irqpoll_res_completedfunction irqpoll_out_completedfunction send_irqpollfunction new_system_port_statusfunction __add_offloaded_reg_to_fifofunction add_offloaded_regfunction check_vub300_port_statusfunction __vub300_irqpoll_responsefunction __do_pollfunction vub300_pollwork_threadfunction vub300_deadwork_threadfunction vub300_inactivity_timer_expiredfunction vub300_response_errorfunction command_res_completedfunction command_out_completedfunction snoop_block_size_and_bus_widthfunction send_commandfunction usb_kill_urbfunction roundup_to_multiple_of_64function __download_offload_pseudocodefunction download_offload_pseudocodefunction vub300_usb_bulk_msg_completionfunction vub300_usb_bulk_msgfunction __command_read_datafunction __command_write_datafunction __vub300_command_responsefunction construct_request_response
Annotated Snippet
module_init(vub300_init);
module_exit(vub300_exit);
MODULE_AUTHOR("Tony Olech <tony.olech@elandigitalsystems.com>");
MODULE_DESCRIPTION("VUB300 USB to SD/MMC/SDIO adapter driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/errno.h`, `linux/init.h`, `linux/slab.h`, `linux/module.h`, `linux/kref.h`, `linux/uaccess.h`, `linux/usb.h`.
- Detected declarations: `struct host_controller_info`, `struct sd_command_header`, `struct sd_irqpoll_header`, `struct sd_common_header`, `struct sd_response_header`, `struct sd_status_header`, `struct sd_error_header`, `struct sd_interrupt_header`, `struct offload_registers_access`, `struct sd_offloaded_interrupt`.
- Atlas domain: Driver Families / drivers/mmc.
- 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.