STRUCT DC_PROBE_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct dc_probe_state(9) β€” the dc_probe_state(9) kernel API manual page, bestie edition πŸŽ€

okay so this is a page straight out of the Kernel API Manual and it's all about one lil struct. it's giving "small but mighty" energy fr fr.


✨ NAME ✨

struct dc_probe_state β€” a DM-authored descriptor of a single probe. that's it, that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

here's the shape of it, copy it exactly, no cap:

struct dc_probe_state {
    enum dc_probe_type         type;
    enum dc_probe_target_state target_state;
    struct dc_probe_scope      scope;
 };

look at her. three members. absolutely iconic. ✨


πŸ¦‹ Members πŸ¦‹

  • type β€” what to measure. literally just "what are we even measuring here" 🫢
  • target_state β€” the desired lifecycle state for this probe. like, where do we want it to end up πŸ’–
  • scope β€” what the probe is scoped to (and rn it's GLOBAL only, okay? only. for now πŸ‘€)

πŸ’œ Description πŸ’œ

so what is this thing actually? it's a plain inline value with copy semantics β€” meaning no allocation, no refcount. none. zero. not a single refcount to your name 😭 she just gets copied around and that's the whole point.

what does DC do with it? okay so: DC resolves each descriptor to a HW measurement instance, and then it diffs the desired set against the committed set to plan the transition. like a vibe check but for hardware state, iykyk 🌈

ngl this part is the main character of the page β€” the diffing is the whole reason the struct exists, so don't skip it πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/gpu/drm/amd/display/dc/dc_probe.h enum dc_probe_type(9)
  • enum dc_probe_target_state(9)
  • enum dc_probe_scope_type(9)
  • struct dc_probe_scope(9)
  • struct dc_probe_updates(9)

go read those too, bestie, they're all in the same friend group 🫢🧚


and that's the page!! πŸŽ€ this lil icon came to you from ./drivers/gpu/drm/amd/display/dc, dated October 2026, and that's the source/version + date sign-off, mwah πŸ’‹ periodt ✨

πŸ“¦ where this page comes from