ax_transfer_one(9)
π ax_transfer_one(9) β the Kernel API Manual glow-up
okay so bestie, welcome to the ax_transfer_one(9) page from the Kernel API Manual. this is the one that actually kicks off the SPI transfer. it's giving main character energy in the transfer pipeline, and we're gonna go through it together, no cap. π¦
β¨ NAME β¨
ax_transfer_one β initiates the SPI transfer π«
πΈ SYNOPSIS πΈ
int ax_transfer_one (struct spi_controller *ctlr , struct spi_device
*spi , struct spi_transfer *transfer );
π ARGUMENTS π
ctlrβ pointer to thespi_controllerstructure. like, the controller in charge, the boss of the bus πspiβ pointer to thespi_devicestructure. the actual device we're talking to π«Άtransferβ pointer to thespi_transferstructure, which is literally the little info packet telling you all about the next transfer's parameters π¦
π₯ DESCRIPTION π₯
so what does it do, you ask? it fills the TX FIFO, starts the SPI transfer, and then returns a positive transfer count β and the reason it returns positive is so that core will wait for completion. that's the whole vibe check. the way it sets everything up and hands off the waiting duty to coreβ¦ obsessed. β¨
β RETURN β
number of bytes transferred in the last transfer. a little number, a lot of meaning π
π§ SEE ALSO π§
bestie, this is the whole squad, all hanging out in the kernel file ./drivers/spi/spi-axiado.c:
ax_spi_read(9)ax_spi_write(9)ax_spi_write_b(9)ax_spi_init_hw(9)ax_spi_chipselect(9)ax_spi_config_clock_mode(9)ax_spi_config_clock_freq(9)ax_spi_setup_transfer(9)ax_spi_fill_tx_fifo(9)ax_spi_get_rx_byte_for_irq(9)ax_spi_process_rx_and_finalize(9)ax_spi_irq(9)ax_prepare_transfer_hardware(9)ax_unprepare_transfer_hardware(9)ax_spi_detect_fifo_depth(9)ax_spi_get_rx_byte(9)ax_spi_probe(9)ax_spi_remove(9)ax_spi_suspend(9)ax_spi_resume(9)ax_spi_runtime_resume(9)ax_spi_runtime_suspend(9)
go read them all, iykyk π«Ά
and that's the page!! sign-off time: this lil beauty lives under ./drivers/spi, dated October 2026, and it ate, no notes. periodt π
π
π¦ 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