spi_offload_...ger_validate(9)
π 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 β
0on success π- a negative error code on failure π
π SEE ALSO π
- Kernel file
./drivers/spi/spi-offload.c devm_spi_offload_alloc(9)devm_spi_offload_get(9)devm_spi_offload_trigger_get(9)spi_offload_trigger_enable(9)spi_offload_trigger_disable(9)devm_spi_offload_tx_stream_request_dma_chan(9)devm_spi_offload_rx_stream_request_dma_chan(9)devm_spi_offload_trigger_register(9)spi_offload_trigger_get_priv(9)
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
- 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