drivers/mmc/core/core.c
Source file repositories/reference/linux-study-clean/drivers/mmc/core/core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mmc/core/core.c- Extension
.c- Size
- 62149 bytes
- Lines
- 2430
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/init.hlinux/interrupt.hlinux/completion.hlinux/device.hlinux/delay.hlinux/pagemap.hlinux/err.hlinux/leds.hlinux/scatterlist.hlinux/log2.hlinux/pm_runtime.hlinux/suspend.hlinux/fault-inject.hlinux/random.hlinux/slab.hlinux/of.hlinux/mmc/card.hlinux/mmc/host.hlinux/mmc/mmc.hlinux/mmc/sd.hlinux/mmc/slot-gpio.htrace/events/mmc.hcore.hcard.hcrypto.hbus.hhost.hsdio_bus.hpwrseq.hmmc_ops.hsd_ops.h
Detected Declarations
function mmc_schedule_delayed_workfunction mmc_should_fail_requestfunction mmc_should_fail_requestfunction mmc_command_donefunction mmc_request_donefunction __mmc_start_requestfunction mmc_mrq_pr_debugfunction mmc_mrq_prepfunction mmc_start_requestfunction mmc_wait_donefunction mmc_wait_ongoing_tfr_cmdfunction __mmc_start_reqfunction mmc_wait_for_req_donefunction mmc_cqe_start_reqfunction mmc_cqe_request_donefunction mmc_cqe_post_reqfunction mmc_cqe_request_donefunction mmc_is_req_donefunction mmc_wait_for_req_donefunction mmc_wait_for_cmdfunction mmc_set_data_timeoutfunction mmc_ctx_matchesfunction mmc_ctx_set_claimerfunction __mmc_claim_hostfunction mmc_release_hostfunction mmc_get_cardfunction mmc_put_cardfunction mmc_set_iosfunction mmc_set_chip_selectfunction mmc_set_clockfunction mmc_execute_tuningfunction modefunction mmc_set_bus_widthfunction mmc_set_initial_statefunction mmc_vdd_to_ocrbitnumfunction mmc_vddrange_to_ocrmaskfunction mmc_of_get_func_numfunction for_each_child_of_nodefunction mmc_select_voltagefunction mmc_set_signal_voltagefunction mmc_set_initial_signal_voltagefunction mmc_host_set_uhs_voltagefunction mmc_set_uhs_voltagefunction mmc_set_timingfunction mmc_set_driver_typefunction mmc_select_drive_strengthfunction mmc_power_upfunction mmc_power_off
Annotated Snippet
subsys_initcall(mmc_init);
module_exit(mmc_exit);
MODULE_DESCRIPTION("MMC core driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/interrupt.h`, `linux/completion.h`, `linux/device.h`, `linux/delay.h`, `linux/pagemap.h`, `linux/err.h`.
- Detected declarations: `function mmc_schedule_delayed_work`, `function mmc_should_fail_request`, `function mmc_should_fail_request`, `function mmc_command_done`, `function mmc_request_done`, `function __mmc_start_request`, `function mmc_mrq_pr_debug`, `function mmc_mrq_prep`, `function mmc_start_request`, `function mmc_wait_done`.
- 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.