arch/mips/bcm63xx/nvram.c
Source file repositories/reference/linux-study-clean/arch/mips/bcm63xx/nvram.c
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/bcm63xx/nvram.c- Extension
.c- Size
- 2221 bytes
- Lines
- 99
- Domain
- Architecture Layer
- Bucket
- arch/mips
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/bcm963xx_nvram.hlinux/init.hlinux/crc32.hlinux/export.hlinux/kernel.hlinux/if_ether.hbcm63xx_nvram.h
Detected Declarations
function bcm63xx_nvram_initfunction bcm63xx_nvram_get_mac_addressfunction bcm63xx_nvram_get_psi_sizeexport bcm63xx_nvram_get_nameexport bcm63xx_nvram_get_mac_addressexport bcm63xx_nvram_get_psi_size
Annotated Snippet
if (p == oui) {
pr_err("unable to fetch mac address\n");
return -ENODEV;
}
}
mac_addr_used++;
return 0;
}
EXPORT_SYMBOL(bcm63xx_nvram_get_mac_address);
int bcm63xx_nvram_get_psi_size(void)
{
if (nvram.psi_size > 0)
return nvram.psi_size;
return BCM63XX_DEFAULT_PSI_SIZE;
}
EXPORT_SYMBOL(bcm63xx_nvram_get_psi_size);
Annotation
- Immediate include surface: `linux/bcm963xx_nvram.h`, `linux/init.h`, `linux/crc32.h`, `linux/export.h`, `linux/kernel.h`, `linux/if_ether.h`, `bcm63xx_nvram.h`.
- Detected declarations: `function bcm63xx_nvram_init`, `function bcm63xx_nvram_get_mac_address`, `function bcm63xx_nvram_get_psi_size`, `export bcm63xx_nvram_get_name`, `export bcm63xx_nvram_get_mac_address`, `export bcm63xx_nvram_get_psi_size`.
- Atlas domain: Architecture Layer / arch/mips.
- 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.