cs_dsp_mock...d_data_block(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cs_dsp_mock_wmfw_add_data_block β€” the kernel API manual, bestie edition

okay so this is the page for cs_dsp_mock...d_data_block(9) β€” yes the header is literally abbreviated like that, she's mysterious, she's iconic, that's just how the kernel do. anyway. welcome to the wmfw mock builder lore πŸŽ€


✨ NAME ✨

cs_dsp_mock_wmfw_add_data_block β€” Add a data block to the wmfw file. that's it, that's the whole job, and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

void cs_dsp_mock_wmfw_add_data_block (struct cs_dsp_mock_wmfw_builder
*builder , int mem_region , unsigned int mem_offset_dsp_words , const
void *payload_data , size_t payload_len_bytes );

like… look at her. five arguments, returns void, zero drama. no cap. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • builder β€” Pointer to struct cs_dsp_mock_bin_builder. (yes bestie the original really does say cs_dsp_mock_bin_builder here β€” I'm not touching it, that's canon, copy it exactly as it is and don't @ me πŸ™ˆ)
  • mem_region β€” Memory region for the block. an int. which region are we living in today πŸ‘‘
  • mem_offset_dsp_words β€” Offset to start of destination in DSP words. not bytes, words β€” DSP words, respectfully. unsigned int. don't mix them up fr fr πŸ’€
  • payload_data β€” Pointer to buffer containing the payload data. const void *, so we're looking, not touching 🫢
  • payload_len_bytes β€” Length of payload data in bytes. a size_t. note the units flip from the offset arg β€” words over there, bytes over here β€” and honestly that's the main character energy of this whole function ⭐
like, lowkey the vibe check here is: mem_offset_dsp_words is words, payload_len_bytes is bytes. keep them straight and you're slaying. mix them up and… 😭

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c β€” that's the source, go read her, she's right there 🌈

and the whole friend group:

they all ate, honestly. go hang with them next πŸ’…


okay and finally, the little sign-off at the bottom of the page πŸ“œ β€” this one lives in the kernel source tree under ./drivers/firmware/cirrus/test, it's dated October 2026, and it's filed under cs_dsp_mock...d_data_block(9). periodt. πŸ’–πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from