cdns_spi_setup_transfer(9)
π cdns_spi_setup_transfer(9) β from the Kernel API Manual, bestie β¨
Okay so picture this: it's giving "configure the SPI controller for the transfer you're about to do" and honestly? Iconic. Let's get into it.
β¨ NAME β¨
cdns_spi_setup_transfer β configure the SPI controller for a specified transfer π
π¦ SYNOPSIS π¦
int cdns_spi_setup_transfer(struct spi_device *spi, struct spi_transfer *transfer);
πΈ ARGUMENTS πΈ
spiβ a pointer to thespi_devicestructure. Like, the device in question, periodt πtransferβ a pointer to thespi_transferstructure, which is the little info packet telling you about the setup parameters for the next transfer π
π§ DESCRIPTION π§
So what does it actually do? It sets the operational mode of the SPI controller for the next SPI transfer, and it sets the requested clock frequency. That's the whole vibe. No cap, that's it. β
π₯ RETURN π₯
Always 0. Like, always always. It does not miss. π
π SEE ALSO π
Kernel file ./drivers/spi/spi-cadence.c, plus these absolute main characters:
struct cdns_spi(9)cdns_spi_init_hw(9)cdns_spi_chipselect(9)cdns_spi_config_clock_mode(9)cdns_spi_config_clock_freq(9)cdns_spi_process_fifo(9)cdns_spi_irq(9)cdns_transfer_one(9)cdns_prepare_transfer_hardware(9)cdns_unprepare_transfer_hardware(9)cdns_spi_detect_fifo_depth(9)cdns_target_abort(9)cdns_spi_probe(9)cdns_spi_remove(9)cdns_spi_suspend(9)cdns_spi_resume(9)cdns_spi_runtime_resume(9)cdns_spi_runtime_suspend(9)
And that's the whole page, bestie! This one lives in ./drivers/spi, and it's dated October 2026 β the same name up top and bottom, cdns_spi_setup_transfer(9). Slay, go read the source, mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms