arch/sparc/kernel/ldc.c
Source file repositories/reference/linux-study-clean/arch/sparc/kernel/ldc.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sparc/kernel/ldc.c- Extension
.c- Size
- 51581 bytes
- Lines
- 2429
- 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/export.hlinux/slab.hlinux/spinlock.hlinux/delay.hlinux/errno.hlinux/string.hlinux/scatterlist.hlinux/interrupt.hlinux/list.hlinux/init.hlinux/bitmap.hasm/iommu-common.hasm/hypervisor.hasm/iommu.hasm/page.hasm/ldc.hasm/mdesc.h
Detected Declarations
struct ldc_packetstruct ldc_versionstruct ldc_channelstruct ldc_mode_opsstruct ldc_iommustruct ldc_channelstruct cookie_statefunction __advancefunction rx_advancefunction tx_advancefunction head_for_datafunction tx_has_space_forfunction set_tx_tailfunction __set_rx_headfunction send_tx_packetfunction start_handshakefunction send_version_nackfunction send_version_ackfunction send_rtsfunction send_rtrfunction send_rdxfunction send_data_nackfunction ldc_abortfunction process_ver_infofunction process_ver_ackfunction process_ver_nackfunction process_versionfunction process_rtsfunction process_rtrfunction rx_seq_okfunction process_rdxfunction process_control_framefunction process_error_framefunction process_data_ackfunction send_eventsfunction ldc_rxfunction ldc_txfunction __ldc_channel_existsfunction hlist_for_each_entryfunction alloc_queuefunction free_queuefunction ldc_cookie_to_indexfunction ldc_demapfunction ldc_iommu_initfunction ldc_iommu_releasefunction ldc_unbindfunction ldc_freefunction ldc_bind
Annotated Snippet
core_initcall(ldc_init);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/export.h`, `linux/slab.h`, `linux/spinlock.h`, `linux/delay.h`, `linux/errno.h`, `linux/string.h`, `linux/scatterlist.h`.
- Detected declarations: `struct ldc_packet`, `struct ldc_version`, `struct ldc_channel`, `struct ldc_mode_ops`, `struct ldc_iommu`, `struct ldc_channel`, `struct cookie_state`, `function __advance`, `function rx_advance`, `function tx_advance`.
- 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.