spi_unregister_controller(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

spi_unregister_controller β€” bestie, this is the one that unregisters an SPI host or target controller πŸ’…


✨ SYNOPSIS ✨

void spi_unregister_controller (struct spi_controller *ctlr );

πŸŽ€ ARGUMENTS πŸŽ€

  • ctlr β€” literally the controller being unregistered, that's the whole vibe πŸ¦‹

πŸ’œ CONTEXT πŸ’œ

can sleep 😴 β€” yes queen, take your nap, this one's allowed to block.


πŸ”₯ DESCRIPTION πŸ”₯

okay so listen πŸ‘‘: this call is used only by SPI controller drivers, which are the only ones directly touching chip registers. iykyk β€” if you're not a controller driver, this is not your moment, hands off the registers fr fr.

and this must be called from context that can sleep. not optional, not a suggestion, not "eh it'll probably be fine" β€” it has to be sleepable context, periodt 😭


🌈 SEE ALSO 🌈

Kernel file ./drivers/spi/spi.c β€” plus the whole friend group right here 🫢


and that's the whole page bestie, no crumbs left πŸ’– this one came from ./drivers/spi, it's part of the Kernel API Manual, and it's dated October 2026 ⭐ mwah, go unregister something responsibly 🧚

πŸ“¦ where this page comes from