bcma_arch_r...llback_sprom(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bcma_arch_r...llback_sprom(9) β€” like, the Kernel API Manual page, bestie

okay so real talk, this is a page from the Kernel API Manual (yes, that manual, the bcma_arch_r...llback_sprom(9) one) and it's shorter than my attention span but it ate, so let's get into it πŸŽ€


✨ NAME ✨

bcma_arch_register_fallback_sprom β€” the function that registers a method providing a fallback SPROM when no SPROM gets found. That's it, that's the whole name section, she's concise πŸ’…


🌸 SYNOPSIS 🌸

int bcma_arch_register_fallback_sprom (int (*sprom_callback)(struct
bcma_bus *bus, struct ssb_sprom *out) );

literally just copy that exactly, don't retype it from memory, i'm begging 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sprom_callback β€” the callback function. yes bestie that's the whole description. she said "the callback function" and clocked out. iconic honestly ✨

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea β˜• with this function, the architecture implementation is allowed to register a callback handler that fills the SPROM data structure. like, it does the filling. main character energy.

the fallback gets used for PCI based BCMA devices, where no valid SPROM can be found in the shadow registers β€” and also to provide the SPROM for SoCs where BCMA is to control the system bus. both vibes, same function πŸ’–

this function is useful for weird architectures that have a half-assed BCMA device hardwired to their PCI bus. no cap, they said half-assed in the official docs, i'm not making that up 😭

⚠️ and listen β€” this function is available for architecture code, only. so it is not exported. do not come for her at the module level, she's architecture-only, periodt πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/bcma/sprom.c β€” go read it, iykyk 🧚

and that's the page!! 🌈

cute lil sign-off: this whole thing lives in ./drivers/bcma, and it's dated October 2026 β€” so yeah, she's from the future, slay πŸ’œπŸ’«

πŸ“¦ where this page comes from