arch/m68k/virt/platform.c
Source file repositories/reference/linux-study-clean/arch/m68k/virt/platform.c
File Facts
- System
- Linux kernel
- Corpus path
arch/m68k/virt/platform.c- Extension
.c- Size
- 2365 bytes
- Lines
- 95
- Domain
- Architecture Layer
- Bucket
- arch/m68k
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/platform_device.hlinux/interrupt.hlinux/memblock.hasm/virt.hasm/irq.h
Detected Declarations
function virt_virtio_initfunction virt_platform_init
Annotated Snippet
if (IS_ERR(pdevs[i])) {
ret = PTR_ERR(pdevs[i]);
goto err_unregister_virtio;
}
}
return 0;
err_unregister_virtio:
while (i > 0)
platform_device_unregister(pdevs[--i]);
platform_device_unregister(pdev3);
err_unregister_rtc:
platform_device_unregister(pdev2);
err_unregister_tty:
platform_device_unregister(pdev1);
return ret;
}
arch_initcall(virt_platform_init);
Annotation
- Immediate include surface: `linux/platform_device.h`, `linux/interrupt.h`, `linux/memblock.h`, `asm/virt.h`, `asm/irq.h`.
- Detected declarations: `function virt_virtio_init`, `function virt_platform_init`.
- Atlas domain: Architecture Layer / arch/m68k.
- 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.