spi_test_execute_msg(9)
π« spi_test_execute_msg π«
okay so welcome to the Kernel API Manual bestie, we're doing SPI loopback testing today and honestly it's giving very much "trust the process" π«Ά
πΈ NAME πΈ
spi_test_execute_msg β the default implementation that actually runs a test, like it's the one who shows up and does the work no cap π
β¨ SYNOPSIS β¨
int spi_test_execute_msg (struct spi_device *spi , struct spi_test *test
, void *tx , void *rx );
lowkey just four args, we love a compact signature π
π¦ ARGUMENTS π¦
spiβ thespi_deviceyou're running thespi_messageon. this is the lil guy in question, the main character of the transfer fr fr.testβ the test you want to execute, and heads up: it already containsmsg. so don't go adding one, it's got one, we're good πtxβ the tx buffer that was allocated for the test sequence. pre-allocated, don't come for me.rxβ the rx buffer that was allocated for the test sequence. same deal, it's already yours β¨
β RETURN β
it hands you back the error code of spi_sync, plus some basic error checking on top. so like, you get the vibe check and the receipt π
π§ SEE ALSO π§
- kernel file
./drivers/spi/spi-loopback-test.c spi_test_run_test(9)spi_test_run_tests(9)
go read those next, iykyk π
and that's the whole page bestie π huge slay, no notes. this one lives in ./drivers/spi and the version fairies stamped it October 2026 β iconic of them honestly πβ¨π
π¦ 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