spi_mem_adjust_op_freq(9)
β¨ spi_mem_adjust_op_freq(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for spi_mem_adjust_op_freq(9) β yes that's the whole name, yes it's a mouthful, no we're not shortening it π
πΈ NAME πΈ
spi_mem_adjust_op_freq β adjusts the frequency of a SPI mem operation so it matches what the controller, the PCB and the chip can actually handle π«Ά
π¦ SYNOPSIS π¦
void spi_mem_adjust_op_freq (struct spi_mem *mem , struct spi_mem_op *op );
likeβ¦ that's it. that's the whole signature. no return value, no drama, just vibes β¨
π ARGUMENTS π
memβ the SPI memory. the main character, lowkey πopβ the operation to adjust. this is the one getting a little glow-up π
π DESCRIPTION π
so here's the tea: some chips have per-op frequency limitations and they must adapt their maximum speed. not optional, not a suggestion β it's giving "respect my limits" energy π
this function is the glow-up station π« β it lets SPI mem drivers set op->max_freq to the maximum supported value. that's the whole job. get in, set the max freq, get out, slay π₯
ngl this one's short but it's iconic. small function, big responsibility π
π SEE ALSO π
the Kernel file in question:
./drivers/spi/spi-mem.c
and the rest of the friend group (iykyk) π«Ά:
spi_controller_dma_map_mem_op_data(9)spi_controller_dma_unmap_mem_op_data(9)spi_mem_supports_op(9)spi_mem_exec_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_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)
and that's the whole page bestie, no cap π this little baddie lives over in ./drivers/spi, stamped October 2026, and yes β it's still spi_mem_adjust_op_freq(9) all the way down to the footer. periodt. π
β¨
π¦ 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