cs_dsp_mock_...dd_raw_block(9)
π cs_dsp_mock_wmfw_add_raw_block(9) β a Kernel API Manual moment π
okay so bestie, we're in the Kernel API Manual today and this one is a little builder helper, iykyk? it literally just drops a raw block into a wmfw file. that's the whole vibe. no cap. π
β¨ NAME β¨
cs_dsp_mock_wmfw_add_raw_block β adds a block to the wmfw file. that's it, that's the job, and she does it slayfully π
π¦ SYNOPSIS π¦
void cs_dsp_mock_wmfw_add_raw_block (struct cs_dsp_mock_wmfw_builder
*builder , int block_type , unsigned int offset , const void
*payload_data , size_t payload_len_bytes );
like, look at her. five parameters, returns void (so nothing comes back, she's not that kind of function), and she's just here to append. iconic. β
πΈ ARGUMENTS πΈ
builderβ Pointer tostruct cs_dsp_mock_bin_builder. this is your little construction station, your main character of the argument list π«Άblock_typeβ the block type. yes that's the whole description, don't come for me, I'm just the messenger πoffsetβ the offset. again: that's what the page says. short and mysterious, we respect it πpayload_dataβ pointer to the buffer containing the payload data, orNULLif there's no data. so it is allowed to be a whole lot of nothing, and that's valid πpayload_len_bytesβ length of the payload data in bytes, or zero. zero bytes = also valid. see? she's flexible. lowkey obsessed π₯
π SEE ALSO π
kernel file: ./drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c β go read the source, it's giving primary source energy πβ¨
and her besties in the function family:
cs_dsp_mock_wmfw_format_version(9)cs_dsp_mock_wmfw_get_firmware(9)cs_dsp_mock_wmfw_add_info(9)cs_dsp_mock_wmfw_add_data_block(9)cs_dsp_mock_wmfw_init(9)
go say hi to all of them, they're all part of the same little wmfw friend group π
ngl this one is a small function with a big heart. thebuilderarg's description saysstruct cs_dsp_mock_bin_builderwhile the synopsis saysstruct cs_dsp_mock_wmfw_builderβ I'm not touching that, I'm just reporting it exactly as written, because accuracy is the moment π
and that's the whole page, bestie!! π§ no flags, no exit statuses, no environment variables β we keep it cute and light today. she lives over in ./drivers/firmware/cirrus/test, dated October 2026, and this was your Kernel API Manual for cs_dsp_mock_...dd_raw_block(9). mwah πππ
π¦ 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