STRUCT CS_DSP_TEST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct cs_dsp_test(9) πŸ’…

okay so this is a page from the Kernel API Manual, and it's literally the glow-up guide to a struct bestie. no cap, let's get into it 🫢


✨ NAME ✨

struct cs_dsp_test β€” the base class for test utilities, aka the main character of your test setup πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

struct cs_dsp_test {
    struct kunit *test;
    struct cs_dsp *dsp;
    struct cs_dsp_test_local *local;
 };

like, that's the whole vibe. three members, zero drama ✨


πŸŽ€ Members πŸŽ€

  • test β€” a pointer to a struct kunit instance. yup, your kunit test bestie lives here 🧚
  • dsp β€” a pointer to a struct cs_dsp instance. the actual dsp situation, fr fr πŸ’œ
  • local β€” private data for each test suite. it's giving "don't read my diary" πŸ™ˆ

🌈 SEE ALSO 🌈

  • kernel file ./include/linux/firmware/cirrus/cs_dsp_test_utils.h
  • struct cs_dsp_mock_alg_def(9)
  • struct cs_dsp_mock_xm_header(9)

like, go read those too, iykyk 😭πŸ”₯


lowkey a reminder that this all lives in the kernel file ./include/linux/firmware/cirrus β€” that's the address, bestie, don't lose it 🏑

and that's the tea πŸ“ this icon was served up October 2026 out of ./include/linux/firmware/cirrus, and honestly? periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from