drivers/cdrom

Uniform CD-ROM layer and Sega Dreamcast GD-ROM driver

The shared core that every Linux CD, DVD, and Blu-ray drive plugs into for media handling, tray control, and the standard ioctl interface, alongside a separate driver for the GD-ROM optical drive built into Sega's Dreamcast game console from 1998. The generic optical-disc core remains in active use; the GD-ROM piece serves only Dreamcast retro-computing.

keep-annotate conf=0.84 deploy=medium replacement=none subsystem=cdrom category=storage-block
84%

recommendation

Worth keeping but document its niche because the directory mixes two very different things. The shared cdrom.c file is the common Linux optical-disc layer that every SCSI/ATAPI CD and DVD drive still relies on, including drives sold new in 2025. Bundled alongside it is gdrom.c, the driver for the Sega Dreamcast's proprietary GD-ROM, which is firmly legacy hardware but still receives occasional upstream fixes (a 2026 patch was posted), so removal is not on the table.

repository signals

3 files
4,588 source lines
48 commits, 5y
+189 / −251 lines added / removed, 5y
20 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 48 total · active in 24/61 months
2021 2022 2023 2024 2025 2026 2021-04: 0 commits · +0 −0 2021-05: 3 commits · +10 −3 2021-06: 2 commits · +22 −25 2021-07: 2 commits · +8 −70 2021-08: 0 commits · +0 −0 2021-09: 2 commits · +61 −5 2021-10: 1 commit · +2 −2 2021-11: 1 commit · +1 −0 2021-12: 0 commits · +0 −0 2022-01: 2 commits · +1 −23 2022-02: 1 commit · +0 −1 2022-03: 0 commits · +0 −0 2022-04: 1 commit · +1 −2 2022-05: 3 commits · +10 −28 2022-06: 2 commits · +1 −2 2022-07: 0 commits · +0 −0 2022-08: 0 commits · +0 −0 2022-09: 0 commits · +0 −0 2022-10: 0 commits · +0 −0 2022-11: 0 commits · +0 −0 2022-12: 0 commits · +0 −0 2023-01: 0 commits · +0 −0 2023-02: 0 commits · +0 −0 2023-03: 0 commits · +0 −0 2023-04: 0 commits · +0 −0 2023-05: 0 commits · +0 −0 2023-06: 11 commits · +26 −40 2023-07: 0 commits · +0 −0 2023-08: 0 commits · +0 −0 2023-09: 0 commits · +0 −0 2023-10: 1 commit · +0 −1 2023-11: 0 commits · +0 −0 2023-12: 0 commits · +0 −0 2024-01: 0 commits · +0 −0 2024-02: 2 commits · +9 −7 2024-03: 1 commit · +2 −4 2024-04: 0 commits · +0 −0 2024-05: 1 commit · +1 −1 2024-06: 2 commits · +2 −0 2024-07: 1 commit · +2 −2 2024-08: 0 commits · +0 −0 2024-09: 0 commits · +0 −0 2024-10: 1 commit · +1 −1 2024-11: 0 commits · +0 −0 2024-12: 3 commits · +3 −3 2025-01: 1 commit · +1 −1 2025-02: 0 commits · +0 −0 2025-03: 0 commits · +0 −0 2025-04: 0 commits · +0 −0 2025-05: 1 commit · +1 −2 2025-06: 0 commits · +0 −0 2025-07: 1 commit · +2 −6 2025-08: 0 commits · +0 −0 2025-09: 0 commits · +0 −0 2025-10: 0 commits · +0 −0 2025-11: 0 commits · +0 −0 2025-12: 0 commits · +0 −0 2026-01: 0 commits · +0 −0 2026-02: 2 commits · +22 −22 2026-03: 0 commits · +0 −0 2026-04: 0 commits · +0 −0

sources

  1. lore.kernel.org

    `gdrom.c` still sees non-trivial upstream fixes in 2026, so the directory is not abandoned.

  2. docs.kernel.org

    `cdrom.c` is the kernel's uniform CD-ROM layer, i.e. shared infrastructure for Linux optical-drive support rather than a dead single-device stub.

  3. en.wikipedia.org

    GD-ROM is Dreamcast-era proprietary optical media tied to legacy Sega hardware, indicating the Sega-specific part is niche/obsolete even though generic optical support remains relevant.

codex reasoning notes (technical)

Local shell inspection showed `drivers/cdrom` contains shared `cdrom.c` plus the Sega Dreamcast `gdrom.c`, and `drivers/scsi/sr.c` still calls `register_cdrom`/`cdrom_ioctl`, so this directory is still on a live code path. `lore_file_timeline` on `drivers/cdrom/gdrom.c` returned fresh 2026 patch traffic, which argues against deprecation/removal. I attempted removal-talk discovery with `lore_regex`, `lore_path_mentions`, and `lei`, but the lore regex/path queries timed out and local `lei` could not start under sandbox constraints; I found no positive removal evidence. `docs.kernel.org` URL is canonical recall for the subsystem documentation; the Wikipedia GD-ROM URL was obtained via web search. Net: keep the directory, but annotate that the Sega-specific hardware is legacy/niche while the generic optical-disc core still supports hardware that remains sold and deployed.