spi_offload_...ger_validate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spi_offload_trigger_validate(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes, this is that spi_offload_trigger_validate page, and no, we are not skipping any of it 🫢


✨ NAME ✨

spi_offload_trigger_validate</p> β€” it validates the trigger you asked for. literally its whole job πŸ’…


🌸 SYNOPSIS 🌸

int spi_offload_trigger_validate (struct spi_offload_trigger *trigger ,
struct spi_offload_trigger_config *config );

πŸŽ€ ARGUMENTS πŸŽ€

  • trigger β€” the offload trigger instance, the main character of this whole function ngl πŸ‘‘
  • config β€” the trigger config you want validated, hand it over and let the kernel vibe check it πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

so on success, config may be modified to reflect what the hardware can actually do. not a typo, not a glitch β€” the function is allowed to rewrite your config. iconic behavior honestly ✨

for example, the frequency of a periodic trigger may be adjusted to the nearest supported value. like, the hardware is politely nudging you toward something it can actually pull off 🧚

heads up bestie β€” because config can get tweaked on you, callers will likely need to do additional validation of the modified trigger parameters. do not just trust it and walk away 😭

⭐ RETURN ⭐

  • 0 on success πŸ’š
  • a negative error code on failure πŸ’€

🌈 SEE ALSO 🌈


and that's the page, bestie!! πŸŽ€ this one lives over in ./drivers/spi, dated October 2026 β€” go read the whole SPI offload saga, it ate πŸ”₯πŸ‘‘

πŸ“¦ where this page comes from