ax_spi_read(9)
π
ax_spi_read β the Kernel API Manual girlie's guide π
okay so bestie, welcome to the Kernel API Manual entry for ax_spi_read, and honestly? it's giving "small function, big main character energy" β¨ like don't let the tiny synopsis fool you, this lil guy is out here doing register reads, 32 bits per word, and we are OBSESSED π
πΈ NAME πΈ
ax_spi_read β Register Read - 32 bit per word π
like literally, it reads a register. 32 bits. per word. no cap, that's the whole vibe π₯
π¦ SYNOPSIS π¦
u32 ax_spi_read (struct ax_spi *xspi , u32 offset );
that's it. that's the whole call. short king behavior fr fr π
β¨ ARGUMENTS β¨
xspiβ Pointer to theax_spistructure π«Ά like, hand over yourax_spipointer and she'll know what to do with itoffsetβ Register offset address π the exact spot in register-land you wanna peek at, iykyk
π RETURN π
Returns the value of that register π« that's it, that's the tea β you ask for a register, you get the register's value back, slay
π SEE ALSO π
okay so this is the whole group chat π¬ β everybody lives in the kernel file ./drivers/spi/spi-axiado.c and honestly the friend group is huge, so let's do a roll call:
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_transfer_one(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)
like... twenty-two entries. twenty-two!! the way this driver has more friends than me π but periodt, we love a well-connected SPI driver π
ngl bestie, if you're poking at registers, go read the friends above too β they're all in the same file and they all know each other π§
and that's the page!! ily, go read some registers responsibly π
β cute lil sign-off: this gem lives over in ./drivers/spi π and it's dated October 2026 β and yes it's still ax_spi_read(9), the icon, the legend, the 32-bit-per-word queen ππ
π¦ 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