devm_spi_of...ger_register(9)
π devm_spi_offload_trigger_register(9) π
okay so bestie, welcome to the Kernel API Manual β yes that's the manual we're in, we're doing kernel stuff today and honestly? it's giving main character energy π
β¨ NAME β¨
devm_spi_offload_trigger_register β allocate and register an offload trigger, both, in one go, slay π
π¦ SYNOPSIS π¦
int devm_spi_offload_trigger_register (struct device *dev , struct
spi_offload_trigger_info *info );
like, look at her. two args, returns an int, no cap π₯
πΈ ARGUMENTS πΈ
devβ the device, and it's here for devm purposes β yep, that's the whole vibe, the devres magic is the point, iykyk β¨infoβ the provider-specific trigger info. provider-specific!! so it's your provider's little info blob, not a one-size-fits-all situation π«Ά
β RETURN β
0 on success, else a negative error code β so like, check it, don't just vibe past it, bestie π
π SEE ALSO π
the kernel file lives at ./drivers/spi/spi-offload.c (that's her home π ) and she runs with this whole friend group:
devm_spi_offload_alloc(9)devm_spi_offload_get(9)devm_spi_offload_trigger_get(9)spi_offload_trigger_validate(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)spi_offload_trigger_get_priv(9)
ok that's the whole page!! go forth, register your triggers, manage them with devm, and remember: 0 is success and negative means go look at the error code ππ
later bestie π§ β this one came out of ./drivers/spi and it's stamped October 2026, so yeah, she's from the future, iconic behavior fr fr πβ
π¦ 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