spi_mem_exec_op(9)
β¨ spi_mem_exec_op(9) β¨
Okay so bestie, welcome to the kernel API manual for spi_mem_exec_op β she's serving main character energy from ./drivers/spi and honestly she's the one who actually does the thing. Let's get into it π
πΈ SYNOPSIS πΈ
int spi_mem_exec_op (struct spi_mem *mem , const struct spi_mem_op *op
);
Like, that's the whole vibe check right there β you hand her a memory and an operation and she goes off to make it happen β¨
π ARGUMENTS π
memβ the SPI memory, aka the whole reason we're here π«Άopβ the memory operation to execute, like the actual assignment bestie, the thing on the to-do list
π DESCRIPTION π
Executes a memory operation. That's it. That's the tweet.
But okay, the way she does it is lowkey cute: this function first checks that op is supported, and then tries to execute it. So she's not just out here winging it β she does a little vibe check first, and if the op doesn't pass, she's not even gonna try. Iconic behaviour, honestly π
β¨
π₯ RETURN π₯
0 in case of success β slay π β and a negative error code otherwise π (ngl, if you see a negative number, that's your sign something went sideways, fr fr).
π¦ SEE ALSO π¦
- Kernel file
./drivers/spi/spi-mem.cβ the source of truth, go read her π spi_controller_dma_map_mem_op_data(9)spi_controller_dma_unmap_mem_op_data(9)spi_mem_supports_op(9)spi_mem_get_name(9)spi_mem_set_dqs(9)spi_mem_has_dqs(9)spi_mem_adjust_op_size(9)spi_mem_adjust_op_freq(9)spi_mem_calc_op_duration(9)spi_mem_dirmap_create(9)spi_mem_dirmap_destroy(9)devm_spi_mem_dirmap_create(9)devm_spi_mem_dirmap_destroy(9)spi_mem_dirmap_read(9)spi_mem_dirmap_write(9)spi_mem_poll_status(9)spi_mem_driver_register_with_owner(9)spi_mem_driver_unregister(9)
That's the whole page bestie, go forth and execute some memory ops π§ββοΈπ
β with love from ./drivers/spi, October 2026, spi_mem_exec_op(9) ππβ¨
π¦ 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