spi_test_run_test(9)
β¨ spi_test_run_test(9) β¨
okay so bestie, buckle up, because this is a page from the Kernel API Manual and it's literally about running one single SPI test and doing it properly π
π NAME π
spi_test_run_test β run an individual spi_test including all the relevant iterations on: length and buffer alignment π¦
like, not just a test. the whole test, with every length variation and every alignment variation it needs. the way that this function is thorough?? obsessed. π
πΈ SYNOPSIS πΈ
int spi_test_run_test (struct spi_device *spi , const struct spi_test
*test , void *tx , void *rx );
yes the signature is exactly that, spacing and all, don't come for me, I'm just the messenger π«Ά
π ARGUMENTS π
spiβ thespi_devicethat we're gonna send the messages to π¨testβ the actual test we need to execute, like this is the main character of the whole operation πtxβ the tx buffer that was allocated for the test sequence πrxβ the rx buffer that was allocated for the test sequence π
like yeah, both buffers are handed to you, pre-allocated, no cap. you're not malloc-ing anything here, that's not your job, that's somebody else's era π
β RETURN β
status code of spi_sync or other failures π
so basically: you get back the status of spi_sync, or some other failure. either way it's a status code, and you should check it, bestie, like please, fr fr π
π¦ SEE ALSO π¦
- Kernel file
./drivers/spi/spi-loopback-test.c spi_test_execute_msg(9)spi_test_run_tests(9)
go read those if you wanna know how the pieces fit together, iykyk π§
and that's the vibe check, bestie β¨ this page came from ./drivers/spi, dated October 2026, and it's spi_test_run_test(9) β slay, go run some tests ππ
π¦ 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