cs_dsp_mock...p_drop_bytes(9)
π cs_dsp_mock_regmap_drop_bytes π
okay bestie, so this is a page from the Kernel API Manual β yes, the kernel manual, we're being that girl today β¨ β and it's all about cs_dsp_mock_regmap_drop_bytes(9), a function living in ./drivers/firmware/cirrus/test. she's a little helper for throwing bytes out of the cache, and honestly? she ate. let's get into it π
β¨ NAME β¨
cs_dsp_mock_regmap_drop_bytes β drop a number of bytes from the cache. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
void cs_dsp_mock_regmap_drop_bytes (struct cs_dsp_test *priv , unsigned
int first_reg , size_t num_bytes );
literally just three args and a void return. she takes, she doesn't give back π«Ά no cap.
π¦ ARGUMENTS π¦
privβ a pointer to thestruct cs_dsp_testobject. you know, the whole test setup she's working with πfirst_regβ the address of the first register to drop. like, where the dropping starts, bestie πnum_bytesβ how many bytes to drop from the cache. but here's the thing, okay β this gets rounded down to a whole number of registers. so any trailing bytes that aren't a multiple of the register size just... won't get dropped. not even a little π
and this rounding thing? it's intentional. the manpage says it's "(This is intended to help detect math errors in test code.)" β so like, if your test code is doing cursed math, this is gonna snitch on you. icon behaviour, honestly π
π₯ SEE ALSO π₯
- kernel file
./drivers/firmware/cirrus/test/cs_dsp_mock_regmap.cβ the source, go read it if you're nosy π cs_dsp_mock_regmap_drop_range(9)cs_dsp_mock_regmap_drop_regs(9)cs_dsp_mock_regmap_drop_system_regs(9)cs_dsp_mock_regmap_is_dirty(9)cs_dsp_mock_regmap_init(9)
the whole friend group, fr fr π
that's the whole page, no notes. mwah π
sign-off time: source + version vibes come from ./drivers/firmware/cirrus/test, dated October 2026, and the page you're reading is cs_dsp_mock...p_drop_bytes(9) β catch you on the next one, bestie πΈπ¦β
π¦ 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