spi_offload_trigger_enable(9)
π¦ spi_offload_trigger_enable(9) π¦
okay so this one is straight out of the Kernel API Manual, and itβs giving βlet the offload trigger cookβ energy π β¨
β¨ NAME β¨
spi_offload_trigger_enable β enables the trigger for offload, periodt π
πΈ SYNOPSIS πΈ
int spi_offload_trigger_enable (struct spi_offload *offload , struct
spi_offload_trigger *trigger , struct spi_offload_trigger_config *config
);
π ARGUMENTS π
offloadβ the offload instance, bestie π«Άtriggerβ the offload trigger instance β¨configβ the trigger config that needs to be validated π
π DESCRIPTION π
okay so before this can do its thing, there has to be a prepared offload instance with the specified ID, meaning spi_optimize_message was called with the same offload assigned to the message. no cap, thatβs the setup requirement π₯
this also reserves the bus for exclusive use by the offload instance until the trigger is disabled. during that time, any other attempts to send a transfer or lock the bus will fail with -EBUSY β like, the bus is literally booked and busy π
calls must be balanced with spi_offload_trigger_disable, bestie. donβt leave it hanging π
π§ CONTEXT π§
can sleep π΄π€ β yes, this one is allowed to snooze.
π RETURN π
0 on success, otherwise a negative error code π
β 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_validate(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)
mwah π this little page came from ./drivers/spi, dated October 2026, and itβs all about spi_offload_trigger_enable(9). bye bestie π«Άπ
π¦ 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