cs_dsp_mock_size_of_region(9)
π cs_dsp_mock_size_of_region π
okay so bestie, welcome to the Kernel API Manual entry for cs_dsp_mock_size_of_region β yes that's a whole mouthful, yes it's iconic, and yes it's literally just here to hand you a size. Sit down, hydrate, let's go. π«Ά
β¨ NAME β¨
cs_dsp_mock_size_of_region β returns the size of the memory region you ask for. That's it. That's the whole vibe check. π
πΈ SYNOPSIS πΈ
unsigned int cs_dsp_mock_size_of_region (const struct cs_dsp *dsp , int
mem_type );
no cap, that's the signature, copy it exactly, don't freestyle it π
π¦ ARGUMENTS π¦
dspβ a pointer tostruct cs_dsp. literally just a pointer to thestruct cs_dsp, she's the main character you pass in. πmem_typeβ the memory region type. the type of memory region, bestie, that's what you're asking about π
β RETURN β
the size of the region, in bytes. that's the whole return value, no surprises, no plot twists π§
π SEE ALSO π
okay so this is the little friend group this function rolls with β go say hi:
- the Kernel file
./drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c(yes, the actual file, go read her) cs_dsp_mock_base_addr_for_mem(9)cs_dsp_mock_reg_addr_inc_per_unpacked_word(9)cs_dsp_mock_reg_block_length_bytes(9)cs_dsp_mock_reg_block_length_registers(9)cs_dsp_mock_reg_block_length_dsp_words(9)cs_dsp_mock_has_zm(9)cs_dsp_mock_packed_to_unpacked_mem_type(9)cs_dsp_mock_num_dsp_words_to_num_packed_regs(9)cs_dsp_mock_xm_header_get_alg_base_in_words(9)cs_dsp_mock_xm_header_get_fw_version(9)cs_dsp_mock_xm_header_drop_from_regmap_cache(9)cs_dsp_mock_xm_header_write_to_regmap(9)cs_dsp_create_mock_xm_header(9)
okay that's the page!! π huge slay, you made it to the end. this one lives in ./drivers/firmware/cirrus/test and the version/date stamp on it is October 2026 β so yeah, she's from the future, 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