fsl_lbc_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fsl_lbc_find β€” find Localbus bank πŸ’…

okay so bestie, welcome to the fsl_lbc_find(9) page from the Kernel API Manual ✨ it's short, it's sweet, and it's lowkey iconic. let's get into it πŸŽ€


🌸 NAME 🌸

fsl_lbc_find β€” find Localbus bank πŸ¦‹

like, it literally finds a Localbus bank for you. that's the whole gig. no cap.


✨ SYNOPSIS ✨

int fsl_lbc_find (phys_addr_t addr_base );

that's it. one argument. one int coming back. clean, minimal, main character energy πŸ‘‘


🫢 ARGUMENTS 🫢

  • addr_base β€” the base address of the memory bank πŸ’– this is the address you're like "hey, do I have a bank living here?" about.

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the vibe: this function walks the LBC banks and compares the "Base address" field of the BR registers against the addr_base argument you handed it πŸ”

when the bases match, it returns the bank number β€” and bestie, that numbering starts at 0, so don't be surprised when the first one comes back as a zero πŸ™ˆ

if nothing matches? it returns the appropriate errno value instead. so like, not every search is a slay, and that's okay πŸ’…

ngl the important bit: match = bank number starting with 0, no match = errno. that's the whole mood.

πŸ‘€ SEE ALSO πŸ‘€

go read those too, iykyk 🧚


sourced from ./arch/powerpc/sysdev 🌈 dated October 2026 πŸ—“οΈ and it's all about fsl_lbc_find(9) β€” mwah, that's the page, love u, bye πŸ’‹πŸ’–

πŸ“¦ where this page comes from