cs_dsp_mock_regmap_is_dirty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cs_dsp_mock_regmap_is_dirty β€” the Kernel API Manual page you didn't know you needed

okay bestie, welcome to the Kernel API Manual, section 9, and today's main character is cs_dsp_mock_regmap_is_dirty(9). she's a little test helper and honestly she's iconic for it πŸŽ€


✨ NAME ✨

cs_dsp_mock_regmap_is_dirty β€” literally just testing for dirty registers in the cache. that's the whole vibe check 🫢


🌸 SYNOPSIS 🌸

bool cs_dsp_mock_regmap_is_dirty (struct cs_dsp_test *priv , bool
drop_system_regs );

like, copy it exactly, don't @ me 😭


πŸ¦‹ ARGUMENTS πŸ¦‹

  • priv β€” Pointer to struct cs_dsp_test object. your whole little test world lives in here ✨
  • drop_system_regs β€” if this is true, the DSP system regs get dropped from the cache before the dirty check happens. so like, they're not invited to the party anymore πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

okay so the whole thing is: every register that's expected to be written must have already been dropped from the cache. and yes, the DSP system registers can be dropped by passing drop_system_regs == true πŸ‘‘

now the plot twist πŸ™ˆ β€” if any unexpected registers got written, there are still dirty entries chillin' in the cache, and a cache sync will cause a write. so that's your red flag right there, no cap πŸ”₯


⭐ RETURN ⭐

  • true β€” there were dirty entries 😭
  • false β€” there were not, we're clean, we ate πŸ“

🧚 SEE ALSO 🧚

go read these too, they're the friend group:


ngl bestie, read the source file before you go poking at registers β€” it's giving required reading πŸ“š

and that's the page!! mwah πŸ’– this one shipped from ./drivers/firmware/cirrus/test, dated October 2026, and it's brought to you by the Kernel API Manual β€” cs_dsp_mock_regmap_is_dirty(9), periodt πŸ’…πŸŒˆ

πŸ“¦ where this page comes from