spi_test_run_test(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the spi_device that 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 πŸ¦‹

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