cs_dsp_mock...d_data_block(9)
π 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 tostruct cs_dsp_mock_bin_builder. (yes bestie the original really does saycs_dsp_mock_bin_builderhere β 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. anint. 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. asize_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_wordsis words,payload_len_bytesis 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:
cs_dsp_mock_wmfw_format_version(9)cs_dsp_mock_wmfw_get_firmware(9)cs_dsp_mock_wmfw_add_raw_block(9)cs_dsp_mock_wmfw_add_info(9)cs_dsp_mock_wmfw_init(9)
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
- 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