drivers/macintosh/mediabay.c
Source file repositories/reference/linux-study-clean/drivers/macintosh/mediabay.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/macintosh/mediabay.c- Extension
.c- Size
- 19149 bytes
- Lines
- 754
- Domain
- Driver Families
- Bucket
- drivers/macintosh
- 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/types.hlinux/errno.hlinux/kernel.hlinux/delay.hlinux/sched.hlinux/timer.hlinux/stddef.hlinux/init.hlinux/kthread.hlinux/mutex.hlinux/pgtable.hasm/io.hasm/machdep.hasm/pmac_feature.hasm/mediabay.hasm/sections.hasm/ohare.hasm/heathrow.hasm/keylargo.hlinux/adb.hlinux/pmu.h
Detected Declarations
struct media_bay_infostruct mb_opsstruct media_bay_infofunction ohare_mb_contentfunction heathrow_mb_contentfunction keylargo_mb_contentfunction ohare_mb_powerfunction heathrow_mb_powerfunction keylargo_mb_powerfunction ohare_mb_setup_busfunction heathrow_mb_setup_busfunction keylargo_mb_setup_busfunction ohare_mb_un_resetfunction keylargo_mb_initfunction heathrow_mb_un_resetfunction keylargo_mb_un_resetfunction ohare_mb_un_reset_idefunction heathrow_mb_un_reset_idefunction keylargo_mb_un_reset_idefunction set_mb_powerfunction poll_media_bayfunction check_media_bayfunction lock_media_bayfunction unlock_media_bayfunction mb_broadcast_hotplugfunction media_bay_stepfunction media_bay_taskfunction media_bay_attachfunction media_bay_suspendfunction media_bay_resumefunction media_bay_initmodule init media_bay_initexport check_media_bayexport lock_media_bayexport unlock_media_bay
Annotated Snippet
device_initcall(media_bay_init);
Annotation
- Immediate include surface: `linux/types.h`, `linux/errno.h`, `linux/kernel.h`, `linux/delay.h`, `linux/sched.h`, `linux/timer.h`, `linux/stddef.h`, `linux/init.h`.
- Detected declarations: `struct media_bay_info`, `struct mb_ops`, `struct media_bay_info`, `function ohare_mb_content`, `function heathrow_mb_content`, `function keylargo_mb_content`, `function ohare_mb_power`, `function heathrow_mb_power`, `function keylargo_mb_power`, `function ohare_mb_setup_bus`.
- Atlas domain: Driver Families / drivers/macintosh.
- 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.