alloc_test_w...ue_for_cpirq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… alloc_test_w...ue_for_cpirq(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes it's really called alloc_test_w...ue_for_cpirq(9) and yes the title got truncated mid-word, we don't talk about it πŸ’€. Anyway. Sit down, hydrate, and let's gossip about this little helper function 🫢


🌸 NAME 🌸

alloc_test_workqueue_for_cpirq β€” the workqueue that's all dressed up and ready for event_cpirq() ✨


πŸŽ€ SYNOPSIS πŸŽ€

struct hdcp_workqueue * alloc_test_workqueue_for_cpirq (struct kunit
*test );

like, it takes a test and hands you back a struct hdcp_workqueue *. iconic signature ngl πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” your KUnit test context, bestie. it's the thing doing the managed allocation, so you don't have to babysit the memory yourself πŸ’–

✨ DESCRIPTION ✨

So what does it actually do? It allocates a minimal hdcp_workqueue β€” and the way that it's fully set up?? Obsessed πŸ’…

Specifically it comes with:

  • its mutex initialised
  • its cpirq_work initialised
  • its three delayed works initialised

All of that because event_cpirq needs it β€” that's the guard(mutex) usage and the process_output usage inside event_cpirq. So like, don't skip the setup, the vibes would collapse 😭

fr fr: minimal workqueue, but it's got everything event_cpirq asks for. no cap.

πŸ‘‘ SEE ALSO πŸ‘‘

πŸ“ Kernel file

  • ./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_hdcp_test.c

🧚 The whole friend group (aka every reference, all of them, yes all of them)


and that's the whole page bestie, you ate that πŸ’…βœ¨

Source vibes live over in ./drivers/gpu/drm/amd/display/... and this whole thing is stamped October 2026 β€” alloc_test_w...ue_for_cpirq(9), still truncated, still iconic, periodt πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from