arch/sparc/kernel/pci_sun4v.c
Source file repositories/reference/linux-study-clean/arch/sparc/kernel/pci_sun4v.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sparc/kernel/pci_sun4v.c- Extension
.c- Size
- 33059 bytes
- Lines
- 1360
- Domain
- Architecture Layer
- Bucket
- arch/sparc
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration 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.
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/types.hlinux/pci.hlinux/init.hlinux/slab.hlinux/interrupt.hlinux/percpu.hlinux/irq.hlinux/msi.hlinux/export.hlinux/log2.hlinux/of.hlinux/platform_device.hlinux/dma-map-ops.hasm/iommu-common.hasm/iommu.hasm/irq.hasm/hypervisor.hasm/prom.hpci_impl.hiommu_common.hkernel.hpci_sun4v.h
Detected Declarations
struct vpci_versionstruct iommu_batchstruct pci_sun4v_msiq_entryfunction iommu_batch_startfunction iommu_use_atufunction iommu_batch_flushfunction iommu_batch_new_entryfunction iommu_batch_addfunction iommu_batch_endfunction dma_4v_iotsb_bindfunction list_for_each_entryfunction dma_4v_iommu_demapfunction dma_4v_free_coherentfunction dma_4v_map_physfunction dma_4v_unmap_physfunction dma_4v_map_sgfunction for_each_sgfunction dma_4v_unmap_sgfunction dma_4v_supportedfunction pci_sun4v_scan_busfunction probe_existing_entriesfunction pci_sun4v_atu_alloc_iotsbfunction pci_sun4v_atu_initfunction pci_sun4v_iommu_initfunction pci_sun4v_get_headfunction pci_sun4v_dequeue_msifunction pci_sun4v_set_headfunction pci_sun4v_msi_setupfunction pci_sun4v_msi_teardownfunction pci_sun4v_msiq_allocfunction pci_sun4v_msiq_freefunction pci_sun4v_msiq_build_irqfunction pci_sun4v_msi_initfunction pci_sun4v_msi_initfunction pci_sun4v_probefunction for_each_possible_cpufunction pci_sun4v_initmodule init pci_sun4v_init
Annotated Snippet
subsys_initcall(pci_sun4v_init);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/types.h`, `linux/pci.h`, `linux/init.h`, `linux/slab.h`, `linux/interrupt.h`, `linux/percpu.h`, `linux/irq.h`.
- Detected declarations: `struct vpci_version`, `struct iommu_batch`, `struct pci_sun4v_msiq_entry`, `function iommu_batch_start`, `function iommu_use_atu`, `function iommu_batch_flush`, `function iommu_batch_new_entry`, `function iommu_batch_add`, `function iommu_batch_end`, `function dma_4v_iotsb_bind`.
- Atlas domain: Architecture Layer / arch/sparc.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.