drivers/nubus/nubus.c
Source file repositories/reference/linux-study-clean/drivers/nubus/nubus.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/nubus/nubus.c- Extension
.c- Size
- 23227 bytes
- Lines
- 896
- Domain
- Driver Families
- Bucket
- drivers/nubus
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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/types.hlinux/kernel.hlinux/string.hlinux/nubus.hlinux/errno.hlinux/init.hlinux/module.hlinux/seq_file.hlinux/slab.hasm/setup.hasm/page.hasm/hwtest.h
Detected Declarations
function blockfunction nubus_get_romfunction nubus_rewindfunction nubus_advancefunction nubus_movefunction nubus_expand32function nubus_get_rsrc_memfunction nubus_get_rsrc_strfunction nubus_seq_write_rsrc_memfunction nubus_get_root_dirfunction nubus_get_func_dirfunction nubus_get_board_dirfunction nubus_get_subdirfunction nubus_readdirfunction nubus_rewinddirfunction nubus_find_rsrcfunction nubus_get_block_rsrc_dirfunction nubus_get_display_vidmodefunction nubus_get_display_resourcefunction nubus_get_network_resourcefunction nubus_get_cpu_resourcefunction nubus_get_private_resourcefunction nubus_get_functional_resourcefunction nubus_get_iconfunction nubus_get_vendorinfofunction nubus_get_board_resourcefunction nubus_add_boardfunction nubus_probe_slotfunction nubus_scan_busfunction nubus_initmodule init nubus_initexport nubus_get_rsrc_memexport nubus_get_rsrc_strexport nubus_get_root_direxport nubus_get_func_direxport nubus_get_board_direxport nubus_get_subdirexport nubus_readdirexport nubus_rewinddirexport nubus_first_rsrc_or_nullexport nubus_next_rsrc_or_nullexport nubus_find_rsrc
Annotated Snippet
subsys_initcall(nubus_init);
Annotation
- Immediate include surface: `linux/types.h`, `linux/kernel.h`, `linux/string.h`, `linux/nubus.h`, `linux/errno.h`, `linux/init.h`, `linux/module.h`, `linux/seq_file.h`.
- Detected declarations: `function block`, `function nubus_get_rom`, `function nubus_rewind`, `function nubus_advance`, `function nubus_move`, `function nubus_expand32`, `function nubus_get_rsrc_mem`, `function nubus_get_rsrc_str`, `function nubus_seq_write_rsrc_mem`, `function nubus_get_root_dir`.
- Atlas domain: Driver Families / drivers/nubus.
- Implementation status: integration 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.