init/do_mounts_initrd.c
Source file repositories/reference/linux-study-clean/init/do_mounts_initrd.c
File Facts
- System
- Linux kernel
- Corpus path
init/do_mounts_initrd.c- Extension
.c- Size
- 1427 bytes
- Lines
- 64
- Domain
- Core OS
- Bucket
- Boot And Init
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
Dependency Surface
linux/unistd.hlinux/kernel.hlinux/fs.hlinux/initrd.hdo_mounts.h
Detected Declarations
function no_initrdfunction early_initrdmemfunction early_initrdfunction initrd_load
Annotated Snippet
if (rd_load_image()) {
pr_warn("using deprecated initrd support, will be removed in January 2027; "
"use initramfs instead or (as a last resort) /sys/firmware/initrd; "
"see section \"Workaround\" in "
"https://lore.kernel.org/lkml/20251010094047.3111495-1-safinaskar@gmail.com\n");
}
}
init_unlink("/initrd.image");
}
Annotation
- Immediate include surface: `linux/unistd.h`, `linux/kernel.h`, `linux/fs.h`, `linux/initrd.h`, `do_mounts.h`.
- Detected declarations: `function no_initrd`, `function early_initrdmem`, `function early_initrd`, `function initrd_load`.
- Atlas domain: Core OS / Boot And Init.
- Implementation status: source implementation candidate.
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.